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

All: Fix default sync target

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

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);
}

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'));

View File

@ -319,7 +319,7 @@ class Setting extends BaseModel {
},
'sync.target': {
value: 0,
value: 7, // Dropbox
type: SettingItemType.Int,
isEnum: true,
public: true,