Connect sync state changed signal in file provider socket server to compute overall sync status slot in owncloudgui

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-07-17 17:31:49 +08:00
parent 034fbb8245
commit 98dba86f58
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -64,6 +64,7 @@
#include <QQmlContext>
#ifdef BUILD_FILE_PROVIDER_MODULE
#include "macOS/fileprovider.h"
#include "macOS/fileprovidersettingscontroller.h"
#endif
@ -110,8 +111,11 @@ ownCloudGui::ownCloudGui(Application *parent)
&ownCloudGui::slotUpdateProgress);
FolderMan *folderMan = FolderMan::instance();
connect(folderMan, &FolderMan::folderSyncStateChange,
this, &ownCloudGui::slotSyncStateChange);
connect(folderMan, &FolderMan::folderSyncStateChange, this, &ownCloudGui::slotSyncStateChange);
#ifdef BUILD_FILE_PROVIDER_MODULE
connect(Mac::FileProvider::instance()->socketServer(), &Mac::FileProviderSocketServer::syncStateChanged, this, &ownCloudGui::slotComputeOverallSyncStatus);
#endif
connect(Logger::instance(), &Logger::guiLog, this, &ownCloudGui::slotShowTrayMessage);
connect(Logger::instance(), &Logger::guiMessage, this, &ownCloudGui::slotShowGuiMessage);