Skip to content

Commit

Permalink
macOS "Sleep" feature prevents wallet auto-lock
Browse files Browse the repository at this point in the history
Fixes #947
  • Loading branch information
Chralu committed Jun 13, 2024
1 parent 0315096 commit 61e5bd7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/ui/views/authenticate/auto_lock_guard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,14 @@ class _AutoLockGuardState extends ConsumerState<AutoLockGuard>
ref.read(AuthenticationProviders.authenticationGuard.notifier).unlock();

break;
case AppLifecycleState.inactive:
case AppLifecycleState.hidden:
ref
.read(AuthenticationProviders.authenticationGuard.notifier)
.scheduleNextStartupAutolock();
break;
case AppLifecycleState.paused:
break;
case AppLifecycleState.detached:
break;
case AppLifecycleState.hidden:
case AppLifecycleState.inactive:
break;
}
super.didChangeAppLifecycleState(state);
Expand Down

0 comments on commit 61e5bd7

Please sign in to comment.