1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

All: Added concept of sync version and client ID to allow upgrading sync targets

This commit is contained in:
Laurent Cozic
2019-10-10 23:23:11 +02:00
parent f71e7f4fd3
commit 8a097fb79c
7 changed files with 1454 additions and 1394 deletions

View File

@@ -59,6 +59,7 @@ const ResourceFetcher = require('lib/services/ResourceFetcher');
const SearchEngine = require('lib/services/SearchEngine');
const WelcomeUtils = require('lib/WelcomeUtils');
const { themeStyle } = require('lib/components/global-style.js');
const { uuid } = require('lib/uuid.js');
const SyncTargetRegistry = require('lib/SyncTargetRegistry.js');
const SyncTargetOneDrive = require('lib/SyncTargetOneDrive.js');
@@ -440,6 +441,8 @@ async function initialize(dispatch) {
reg.logger().info('Loading settings...');
await Setting.load();
if (!Setting.value('clientId')) Setting.setValue('clientId', uuid.create());
if (Setting.value('firstStart')) {
let locale = NativeModules.I18nManager.localeIdentifier;
if (!locale) locale = defaultLocale();