feat: Show a dialog when an update is available (#1654)

This commit is contained in:
aAbed
2024-01-25 23:05:34 +05:45
committed by aAbed
parent 7104d6d6dd
commit c7d975e612
10 changed files with 302 additions and 190 deletions

View File

@ -39,6 +39,15 @@ class SettingsViewModel extends BaseViewModel {
notifyListeners();
}
bool showUpdateDialog() {
return _managerAPI.showUpdateDialog();
}
void setShowUpdateDialog(bool value) {
_managerAPI.setShowUpdateDialog(value);
notifyListeners();
}
bool isPatchesChangeEnabled() {
return _managerAPI.isPatchesChangeEnabled();
}