1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Fixed note sorting and changed colour of header

This commit is contained in:
Laurent Cozic
2017-07-27 18:25:42 +01:00
parent 0d37167f39
commit bd06fa781e
13 changed files with 64 additions and 37 deletions

View File

@@ -159,14 +159,14 @@ reg.syncStarted = async () => {
}
reg.setupRecurrentSync = () => {
if (this.recurrentSyncId_) {
PoorManIntervals.clearInterval(this.recurrentSyncId_);
this.recurrentSyncId_ = null;
if (reg.recurrentSyncId_) {
PoorManIntervals.clearInterval(reg.recurrentSyncId_);
reg.recurrentSyncId_ = null;
}
console.info('Setting up recurrent sync with interval ' + Setting.value('sync.interval'));
reg.logger().debug('Setting up recurrent sync with interval ' + Setting.value('sync.interval'));
this.recurrentSyncId_ = PoorManIntervals.setInterval(() => {
reg.recurrentSyncId_ = PoorManIntervals.setInterval(() => {
reg.logger().info('Running background sync on timer...');
reg.scheduleSync(0);
}, 1000 * Setting.value('sync.interval'));