mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 01:53:41 +08:00
update auto login
This commit is contained in:
parent
ef6abbb525
commit
3a63f1acfa
@ -105,7 +105,7 @@ Widget _defaultWebviewTitleBar(BuildContext context) {
|
||||
)
|
||||
: const SizedBox(width: 24),
|
||||
const SizedBox(width: 12),
|
||||
SelectableText("${state.url}"),
|
||||
SelectableText(state.url ?? ""),
|
||||
const Spacer()
|
||||
],
|
||||
));
|
||||
|
@ -55,9 +55,6 @@ class WebViewModel {
|
||||
userDataFolderWindows:
|
||||
"${AppConf.applicationSupportDir}/webview_data",
|
||||
title: title));
|
||||
if (loginMode) {
|
||||
await webview.setWebviewWindowVisibility(false);
|
||||
}
|
||||
// webview.openDevToolsWindow();
|
||||
webview.isNavigating.addListener(() async {
|
||||
if (!webview.isNavigating.value && localizationResource.isNotEmpty) {
|
||||
@ -157,6 +154,8 @@ class WebViewModel {
|
||||
webview.close();
|
||||
}
|
||||
});
|
||||
Future.delayed(const Duration(seconds: 1))
|
||||
.then((value) => {webview.setWebviewWindowVisibility(false)});
|
||||
}
|
||||
} catch (e) {
|
||||
showToast(context, "初始化失败:$e");
|
||||
|
Loading…
Reference in New Issue
Block a user