diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index e7b0f95d25934..13823bd09a4e0 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -436,12 +436,17 @@ void Systray::slotCurrentUserChanged() void Systray::slotUpdateSyncPausedState() { const auto folderMap = FolderMan::instance()->map(); - for (const auto *folder : folderMap) { + for (const auto folder : folderMap) { + connect(folder, &Folder::syncPausedChanged, this, &Systray::slotUpdateSyncPausedState, Qt::UniqueConnection); if (!folder->syncPaused()) { _syncIsPaused = false; - break; + emit syncIsPausedChanged(); + return; } } + + _syncIsPaused = true; + emit syncIsPausedChanged(); } void Systray::slotUnpauseAllFolders()