Chore: All: Add property to Setting to control if file storage is used to save the configuration (#9121)

pull/9124/head
pedr 2023-10-23 12:58:20 -03:00 committed by GitHub
parent 909776c666
commit a77462f8ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -303,6 +303,7 @@ class Setting extends BaseModel {
};
public static autoSaveEnabled = true;
public static allowFileStorage = true;
private static metadata_: SettingItems = null;
private static keychainService_: any = null;
@ -2055,7 +2056,7 @@ class Setting extends BaseModel {
}
private static canUseFileStorage(): boolean {
return !shim.mobilePlatform();
return this.allowFileStorage && !shim.mobilePlatform();
}
private static keyStorage(key: string): SettingStorage {