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

Desktop: Sync immediately on startup

This commit is contained in:
Laurent Cozic 2020-09-09 14:45:26 +01:00
parent a8e29249d6
commit c513cdd4eb

View File

@ -1212,7 +1212,7 @@ class Application extends BaseApplication {
if (Setting.value('env') === 'dev') {
AlarmService.updateAllNotifications();
} else {
reg.scheduleSync().then(() => {
reg.scheduleSync(1000).then(() => {
// Wait for the first sync before updating the notifications, since synchronisation
// might change the notifications.
AlarmService.updateAllNotifications();