Changed menu order
This commit is contained in:
parent
5520987684
commit
f5a32a014a
|
@ -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",
|
||||
|
|
|
@ -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, () {
|
||||
|
|
Loading…
Reference in New Issue