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: 24),
|
||||||
const SizedBox(width: 12),
|
const SizedBox(width: 12),
|
||||||
SelectableText("${state.url}"),
|
SelectableText(state.url ?? ""),
|
||||||
const Spacer()
|
const Spacer()
|
||||||
],
|
],
|
||||||
));
|
));
|
||||||
|
@ -55,9 +55,6 @@ class WebViewModel {
|
|||||||
userDataFolderWindows:
|
userDataFolderWindows:
|
||||||
"${AppConf.applicationSupportDir}/webview_data",
|
"${AppConf.applicationSupportDir}/webview_data",
|
||||||
title: title));
|
title: title));
|
||||||
if (loginMode) {
|
|
||||||
await webview.setWebviewWindowVisibility(false);
|
|
||||||
}
|
|
||||||
// webview.openDevToolsWindow();
|
// webview.openDevToolsWindow();
|
||||||
webview.isNavigating.addListener(() async {
|
webview.isNavigating.addListener(() async {
|
||||||
if (!webview.isNavigating.value && localizationResource.isNotEmpty) {
|
if (!webview.isNavigating.value && localizationResource.isNotEmpty) {
|
||||||
@ -157,6 +154,8 @@ class WebViewModel {
|
|||||||
webview.close();
|
webview.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Future.delayed(const Duration(seconds: 1))
|
||||||
|
.then((value) => {webview.setWebviewWindowVisibility(false)});
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
showToast(context, "初始化失败:$e");
|
showToast(context, "初始化失败:$e");
|
||||||
|
Loading…
Reference in New Issue
Block a user