Re-run update sync paused state slot when folder list has changed
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 27 Mar 2024 11:25:37 +0000 (19:25 +0800)
committerCamila Ayres <hello@camilasan.com>
Tue, 23 Apr 2024 18:18:18 +0000 (20:18 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/systray.cpp

index 45deb2c5e01c1c394423bd72a6c714058484eb2b..d65258e1fa4687c8ead9c51ca20eebe0d6db7471 100644 (file)
@@ -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)