Skip to content

Commit

Permalink
Emit signal when materialised items for an account change
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Oct 10, 2023
1 parent 19fab27 commit 831ed78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/macOS/fileprovidersettingscontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public slots:
void vfsEnabledAccountsChanged();
void localStorageUsageForAccountChanged(const QString &userIdAtHost);
void remoteStorageUsageForAccountChanged(const QString &userIdAtHost);
void materialisedItemsForAccountChanged(const QString &userIdAtHost);

private:
explicit FileProviderSettingsController(QObject *parent = nullptr);
Expand Down
1 change: 1 addition & 0 deletions src/gui/macOS/fileprovidersettingscontroller_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ void fetchMaterialisedFilesStorageUsage()

const auto qDomainIdentifier = QString::fromNSString(domain.identifier);
emit q->localStorageUsageForAccountChanged(qDomainIdentifier);
emit q->materialisedItemsForAccountChanged(qDomainIdentifier);

[storageUseObserver release];
[enumerator release];
Expand Down

0 comments on commit 831ed78

Please sign in to comment.