Changed menu order
This commit is contained in:
parent
5520987684
commit
f5a32a014a
|
@ -378,11 +378,6 @@
|
||||||
"description": "Warning displayed for export and import options",
|
"description": "Warning displayed for export and import options",
|
||||||
"context": "Visible in the settings view"
|
"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": "Check for updates",
|
||||||
"@settingsUpdateCheck": {
|
"@settingsUpdateCheck": {
|
||||||
"description": "Text displayed as description for check for updates button",
|
"description": "Text displayed as description for check for updates button",
|
||||||
|
@ -444,6 +439,11 @@
|
||||||
"description": "Text displayed for cancel button, should be capitalized",
|
"description": "Text displayed for cancel button, should be capitalized",
|
||||||
"context": "Visible in the settings view"
|
"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": "GitHub",
|
||||||
"@settingsGithub": {
|
"@settingsGithub": {
|
||||||
"description": "Text displayed as description for GitHub button",
|
"description": "Text displayed as description for GitHub button",
|
||||||
|
|
|
@ -89,18 +89,6 @@ class _ScreenSettingsAboutState extends State<ScreenSettingsAbout> {
|
||||||
.settingsVersion(currentVersion ?? "0.0.1"),
|
.settingsVersion(currentVersion ?? "0.0.1"),
|
||||||
Icons.verified_rounded,
|
Icons.verified_rounded,
|
||||||
null),
|
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")
|
(updateStatus == "notAvailable")
|
||||||
? const SizedBox.shrink()
|
? const SizedBox.shrink()
|
||||||
: button(
|
: button(
|
||||||
|
@ -144,6 +132,18 @@ class _ScreenSettingsAboutState extends State<ScreenSettingsAbout> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
(updateStatus == "notAvailable")
|
||||||
|
? const SizedBox.shrink()
|
||||||
|
: toggle(
|
||||||
|
context,
|
||||||
|
AppLocalizations.of(context)!
|
||||||
|
.settingsCheckForUpdates,
|
||||||
|
(prefs!.getBool("checkUpdateOnSettingsOpen") ??
|
||||||
|
false), (value) {
|
||||||
|
selectionHaptic();
|
||||||
|
prefs!.setBool("checkUpdateOnSettingsOpen", value);
|
||||||
|
setState(() {});
|
||||||
|
}),
|
||||||
titleDivider(),
|
titleDivider(),
|
||||||
button(AppLocalizations.of(context)!.settingsGithub,
|
button(AppLocalizations.of(context)!.settingsGithub,
|
||||||
SimpleIcons.github, () {
|
SimpleIcons.github, () {
|
||||||
|
|
Loading…
Reference in New Issue