From 238d1a45831cf821eaf6a239974aaa810eed01ce 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 45deb2c5e01c1..d65258e1fa468 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -128,6 +128,7 @@ void Systray::create() hideWindow(); emit activated(QSystemTrayIcon::ActivationReason::Unknown); slotUpdateSyncPausedState(); + connect(FolderMan::instance(), &FolderMan::folderListChanged, this, &Systray::slotUpdateSyncPausedState); } void Systray::showWindow(WindowPosition position)