new option: Lock on Startup Only

This commit is contained in:
Fabian Freund
2026-07-07 17:58:30 +02:00
parent f902ad97fd
commit fde915826c
6 changed files with 19 additions and 3 deletions
@@ -68,6 +68,7 @@ class ProfileEditScreen extends HookConsumerWidget {
.authenticate(
authKey: profileAccessAuthKey(profile!.id),
localizedReason: 'Require authentication for profile',
settings: authSettings,
);
if (!authResult) {
@@ -222,6 +223,14 @@ class _AuthSection extends StatelessWidget {
title: Text('Lock After Timeout'),
subtitle: Text('Lock after a period of inactivity'),
),
RadioListTile.adaptive(
value: AutoLockMode.startup,
title: Text('Lock on Startup Only'),
subtitle: Text(
'Unlock once when the app starts; stay unlocked '
'until the app is fully closed',
),
),
],
),
),