fixed settings page not updating on storage permission granted
All checks were successful
Flutter APK Build / Build Flutter APK (push) Successful in 6m42s

This commit is contained in:
2026-01-23 18:26:08 +01:00
parent 6103d0b679
commit 446ef9a57a

View File

@@ -64,7 +64,8 @@ class _SettingsPageState extends State<SettingsPage> {
: Text( : Text(
'For app-data settings to work, you need to grant the app permissions to manage internal storage.', 'For app-data settings to work, you need to grant the app permissions to manage internal storage.',
), ),
onTap: () => PermissionService.requestStoragePermission, onTap: () => PermissionService.requestStoragePermission
.whenComplete(() => checkStoragePermission()),
trailing: Icon(Icons.arrow_forward_ios_rounded), trailing: Icon(Icons.arrow_forward_ios_rounded),
enabled: !storagePermissionIsGranted, enabled: !storagePermissionIsGranted,
), ),