feat: allow control over patches update (#1063)

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
aAbed
2023-08-04 02:08:56 +05:45
committed by GitHub
parent e55f427b05
commit f905a52988
15 changed files with 322 additions and 103 deletions

View File

@ -28,6 +28,15 @@ class SettingsViewModel extends BaseViewModel {
_navigationService.navigateTo(Routes.contributorsView);
}
bool isPatchesAutoUpdate() {
return _managerAPI.isPatchesAutoUpdate();
}
void setPatchesAutoUpdate(bool value) {
_managerAPI.setPatchesAutoUpdate(value);
notifyListeners();
}
bool areUniversalPatchesEnabled() {
return _managerAPI.areUniversalPatchesEnabled();
}