Skip to content

Commit

Permalink
🐛 fix: lock
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed Sep 4, 2024
1 parent d526100 commit b3dcc73
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/screens/components/TimeoutLock.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ class _TimeoutLockState extends State<TimeoutLock> 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;
Expand Down

0 comments on commit b3dcc73

Please sign in to comment.