From b3dcc73775ba0239ceb1248b05a6488de56e748a Mon Sep 17 00:00:00 2001 From: niuhuan Date: Wed, 4 Sep 2024 18:19:32 +0800 Subject: [PATCH] :bug: fix: lock --- lib/screens/components/TimeoutLock.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/screens/components/TimeoutLock.dart b/lib/screens/components/TimeoutLock.dart index f35d89c..456487c 100644 --- a/lib/screens/components/TimeoutLock.dart +++ b/lib/screens/components/TimeoutLock.dart @@ -33,12 +33,7 @@ class _TimeoutLockState extends State with WidgetsBindingObserver { @override void didChangeAppLifecycleState(AppLifecycleState state) { super.didChangeAppLifecycleState(state); - if (Platform.isMacOS || Platform.isLinux || Platform.isWindows) { - print("currentAuthentication: ${currentAuthentication()}"); - if (!currentAuthentication()) { - return; - } - } + if (!currentAuthentication() || timeoutLock == 0) return; print("_locked: $_locked"); if (_locked) { return;