1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Tidy settings and sync creation

This commit is contained in:
Laurent Cozic
2017-07-24 18:58:11 +00:00
parent 9b8376f152
commit a983a9f108
18 changed files with 204 additions and 168 deletions

View File

@ -153,7 +153,7 @@ class Synchronizer {
const lastContext = options.context ? options.context : {};
const syncTargetId = this.api().driver().syncTargetId();
const syncTargetId = this.api().syncTargetId();
if (this.state() != 'idle') {
this.logger().info('Synchronization is already in progress. State: ' + this.state());
@ -176,7 +176,7 @@ class Synchronizer {
this.dispatch({ type: 'SYNC_STARTED' });
this.logSyncOperation('starting', null, null, 'Starting synchronization to ' + this.api().driver().syncTargetName() + ' (' + syncTargetId + ')... [' + synchronizationId + ']');
this.logSyncOperation('starting', null, null, 'Starting synchronization to target ' + syncTargetId + '... [' + synchronizationId + ']');
try {
await this.api().mkdir(this.syncDirName_);