diff --git a/src/gui/macOS/fileprovidersocketcontroller.cpp b/src/gui/macOS/fileprovidersocketcontroller.cpp index 56cbdb338..8b258d0d3 100644 --- a/src/gui/macOS/fileprovidersocketcontroller.cpp +++ b/src/gui/macOS/fileprovidersocketcontroller.cpp @@ -242,6 +242,11 @@ void FileProviderSocketController::reportSyncState(const QString &receivedState) emit syncStateChanged(_accountState->account(), syncState); } +SyncResult::Status FileProviderSocketController::latestStatus() const +{ + return _latestStatus; +} + } // namespace Mac } // namespace OCC diff --git a/src/gui/macOS/fileprovidersocketcontroller.h b/src/gui/macOS/fileprovidersocketcontroller.h index a1c76b730..7e8cb9238 100644 --- a/src/gui/macOS/fileprovidersocketcontroller.h +++ b/src/gui/macOS/fileprovidersocketcontroller.h @@ -33,6 +33,7 @@ public: explicit FileProviderSocketController(QLocalSocket * const socket, QObject * const parent = nullptr); [[nodiscard]] AccountStatePtr accountState() const; + [[nodiscard]] SyncResult::Status latestStatus() const; signals: void socketDestroyed(const QLocalSocket * const socket);signals: