From 54ce0c5b88798b399e32499e4c7ac885bd6655d5 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 27 Mar 2024 19:25:37 +0800 Subject: [PATCH] Re-run update sync paused state slot when folder list has changed Signed-off-by: Claudio Cambra --- src/gui/systray.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index 5cd0dc9f414a7..d4ca0bae94637 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -123,6 +123,7 @@ void Systray::create() hideWindow(); emit activated(QSystemTrayIcon::ActivationReason::Unknown); slotUpdateSyncPausedState(); + connect(FolderMan::instance(), &FolderMan::folderListChanged, this, &Systray::slotUpdateSyncPausedState); } void Systray::showWindow(WindowPosition position)