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:
parent
909776c666
commit
a77462f8ea
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user