From dfe214009d4c1e6ffe64f6e291b2697b1bc223b6 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Thu, 14 Sep 2023 18:39:28 +0800 Subject: [PATCH] fix: login page may not display on web --- lib/globals.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/globals.dart b/lib/globals.dart index 43b8eff..5f924c0 100644 --- a/lib/globals.dart +++ b/lib/globals.dart @@ -87,6 +87,7 @@ bool tryInitApi(BuildContext context) { return true; } initApi("/api"); + clearAllStates(context); return true; } String? baseUrl = prefs.getString("baseUrl"); @@ -287,7 +288,9 @@ String? _prefix; final _titleLog = Logger("Title"); void setCurrentTitle(String title, - {bool isPrefix = false, bool includePrefix = true, bool usePrefix = false}) { + {bool isPrefix = false, + bool includePrefix = true, + bool usePrefix = false}) { if (!isPrefix && includePrefix && _prefix != null) { title = "$_prefix - $title"; }