diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 47e4821..3b27522 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -378,11 +378,6 @@ "description": "Warning displayed for export and import options", "context": "Visible in the settings view" }, - "settingsCheckForUpdates": "Check for updates on open", - "@settingsCheckForUpdates": { - "description": "Text displayed as description for check for updates toggle", - "context": "Visible in the settings view" - }, "settingsUpdateCheck": "Check for updates", "@settingsUpdateCheck": { "description": "Text displayed as description for check for updates button", @@ -444,6 +439,11 @@ "description": "Text displayed for cancel button, should be capitalized", "context": "Visible in the settings view" }, + "settingsCheckForUpdates": "Check for updates on open", + "@settingsCheckForUpdates": { + "description": "Text displayed as description for check for updates toggle", + "context": "Visible in the settings view" + }, "settingsGithub": "GitHub", "@settingsGithub": { "description": "Text displayed as description for GitHub button", diff --git a/lib/settings/about.dart b/lib/settings/about.dart index cd94a9b..69775ca 100644 --- a/lib/settings/about.dart +++ b/lib/settings/about.dart @@ -89,18 +89,6 @@ class _ScreenSettingsAboutState extends State { .settingsVersion(currentVersion ?? "0.0.1"), Icons.verified_rounded, null), - (updateStatus == "notAvailable") - ? const SizedBox.shrink() - : toggle( - context, - AppLocalizations.of(context)! - .settingsCheckForUpdates, - (prefs!.getBool("checkUpdateOnSettingsOpen") ?? - false), (value) { - selectionHaptic(); - prefs!.setBool("checkUpdateOnSettingsOpen", value); - setState(() {}); - }), (updateStatus == "notAvailable") ? const SizedBox.shrink() : button( @@ -144,6 +132,18 @@ class _ScreenSettingsAboutState extends State { return; } }), + (updateStatus == "notAvailable") + ? const SizedBox.shrink() + : toggle( + context, + AppLocalizations.of(context)! + .settingsCheckForUpdates, + (prefs!.getBool("checkUpdateOnSettingsOpen") ?? + false), (value) { + selectionHaptic(); + prefs!.setBool("checkUpdateOnSettingsOpen", value); + setState(() {}); + }), titleDivider(), button(AppLocalizations.of(context)!.settingsGithub, SimpleIcons.github, () {