mod: add check update

Closes #112

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-08 11:28:28 +08:00
parent 57722eb579
commit 28b6b769b2
6 changed files with 143 additions and 118 deletions

View File

@@ -84,9 +84,6 @@ class _SetSwitchItemState extends State<SetSwitchItem> {
val = value ?? !val;
await GStorage.setting.put(widget.setKey, val);
// if (widget.setKey == SettingBoxKey.autoUpdate && value == true) {
// Utils.checkUpdate();
// }
widget.onChanged?.call(val);
if (widget.needReboot == true) {
SmartDialog.showToast('重启生效');