From a77462f8ea2654b7fe0afa9a4ba8e756782528de Mon Sep 17 00:00:00 2001 From: pedr Date: Mon, 23 Oct 2023 12:58:20 -0300 Subject: [PATCH] Chore: All: Add property to Setting to control if file storage is used to save the configuration (#9121) --- packages/lib/models/Setting.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/lib/models/Setting.ts b/packages/lib/models/Setting.ts index 137b16612..964f39498 100644 --- a/packages/lib/models/Setting.ts +++ b/packages/lib/models/Setting.ts @@ -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 {