[auth] minor fixes
This commit is contained in:
@@ -151,7 +151,7 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
|
||||
onTap: () async {
|
||||
ButtonResult? result;
|
||||
if (_config.hasOptedForOfflineMode() &&
|
||||
!LockScreenSettings.instance.getOfflineModeWarningStatus()) {
|
||||
LockScreenSettings.instance.getOfflineModeWarningStatus()) {
|
||||
result = await showChoiceActionSheet(
|
||||
context,
|
||||
title: context.l10n.warning,
|
||||
@@ -161,7 +161,7 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
|
||||
);
|
||||
if (result?.action == ButtonAction.first) {
|
||||
await LockScreenSettings.instance
|
||||
.setOfflineModeWarningStatus(true);
|
||||
.setOfflineModeWarningStatus(false);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ class LockScreenSettings {
|
||||
}
|
||||
|
||||
bool getOfflineModeWarningStatus() {
|
||||
return _preferences.getBool(keyShowOfflineModeWarning) ?? false;
|
||||
return _preferences.getBool(keyShowOfflineModeWarning) ?? true;
|
||||
}
|
||||
|
||||
Future<void> runLockScreenChangesMigration() async {
|
||||
|
||||
Reference in New Issue
Block a user