mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
Add "Check for updates on startup" setting. #129
This commit is contained in:
@@ -61,6 +61,10 @@ class _AboutSettingsState extends State<AboutSettings> {
|
||||
},
|
||||
).fixHeight(32),
|
||||
).toSliver(),
|
||||
_SwitchSetting(
|
||||
title: "Check for updates on startup".tl,
|
||||
settingKey: "checkUpdateOnStart",
|
||||
).toSliver(),
|
||||
ListTile(
|
||||
title: const Text("Github"),
|
||||
trailing: const Icon(Icons.open_in_new),
|
||||
@@ -102,7 +106,9 @@ Future<void> checkUpdateUi([bool showMessageIfNoUpdate = true]) async {
|
||||
return ContentDialog(
|
||||
title: "New version available".tl,
|
||||
content: Text(
|
||||
"A new version is available. Do you want to update now?".tl),
|
||||
"A new version is available. Do you want to update now?"
|
||||
.tl)
|
||||
.paddingHorizontal(8),
|
||||
actions: [
|
||||
Button.text(
|
||||
onPressed: () {
|
||||
|
Reference in New Issue
Block a user