1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

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

This commit is contained in:
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

View File

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