Changed menu order

This commit is contained in:
JHubi1 2024-06-08 22:41:48 +02:00
parent 5520987684
commit f5a32a014a
No known key found for this signature in database
GPG Key ID: 7BF82570CBBBD050
2 changed files with 17 additions and 17 deletions

View File

@ -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",

View File

@ -89,18 +89,6 @@ class _ScreenSettingsAboutState extends State<ScreenSettingsAbout> {
.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<ScreenSettingsAbout> {
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, () {