mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 06:25:56 +03:00
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:
parent
034fbb8245
commit
98dba86f58
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue