From 904e4f118676ac0e001b3a28e94ca97fbbc58329 Mon Sep 17 00:00:00 2001 From: nyne Date: Sun, 24 Nov 2024 10:37:17 +0800 Subject: [PATCH] fix the issue of hiding UI --- lib/main.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index d2e827d..8d11045 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -79,7 +79,7 @@ class _MyAppState extends State with WidgetsBindingObserver { @override void didChangeAppLifecycleState(AppLifecycleState state) { - if (!App.isMobile) { + if (!App.isMobile || !appdata.settings['authorizationRequired']) { return; } if (state == AppLifecycleState.inactive && hideContentOverlay == null) { @@ -101,7 +101,6 @@ class _MyAppState extends State with WidgetsBindingObserver { hideContentOverlay = null; } if (state == AppLifecycleState.hidden && - appdata.settings['authorizationRequired'] && !isAuthPageActive && !IO.isSelectingFiles) { isAuthPageActive = true;