feat: experimental settings to allow patch on any app version.

This commit is contained in:
Aunali321
2022-11-01 15:26:15 +05:30
parent 293f7150f1
commit ba5234e850
6 changed files with 86 additions and 13 deletions

View File

@ -325,6 +325,16 @@ class SettingsViewModel extends BaseViewModel {
// notifyListeners();
// }
bool areExperimentalPatchesEnabled() {
return _managerAPI.areExperimentalPatchesEnabled();
}
void useExperimentalPatches(bool value) {
_managerAPI.enableExperimentalPatchesStatus(value);
_toast.showBottom('settingsView.enabledExperimentalPatches');
notifyListeners();
}
void deleteKeystore() {
_managerAPI.deleteKeystore();
_toast.showBottom('settingsView.deletedKeystore');