All: Fix default sync target

This commit is contained in:
Laurent Cozic committed 2021-09-29 19:27:26 +01:00
1 parent 3a9867db33
commit 4b39d30255
3 files changed
+3 -1

No files matched your search

+1
View File
@@ -498,6 +498,7 @@ async function initialize(dispatch: Function) {
let locale = NativeModules.I18nManager.localeIdentifier;
if (!locale) locale = defaultLocale();
Setting.setValue('locale', closestSupportedLocale(locale));
Setting.setValue('sync.target', 0);
Setting.setValue('firstStart', 0);
}
+1
View File
@@ -790,6 +790,7 @@ export default class BaseApplication {
Setting.setValue('sync.interval', 3600);
}
Setting.setValue('sync.target', 0);
Setting.setValue('firstStart', 0);
} else {
setLocale(Setting.value('locale'));
+1 -1
View File
@@ -319,7 +319,7 @@ class Setting extends BaseModel {
},
'sync.target': {
value: 0,
value: 7, // Dropbox
type: SettingItemType.Int,
isEnum: true,
public: true,