From d6e8645a25a62179e4784ffd0fb9f229c472fdb3 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 6 Sep 2023 15:45:56 +0800 Subject: [PATCH] Update file provider domain enablement status upon settings change Signed-off-by: Claudio Cambra --- src/gui/macOS/fileproviderdomainmanager_mac.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/macOS/fileproviderdomainmanager_mac.mm b/src/gui/macOS/fileproviderdomainmanager_mac.mm index 753578af8a65a..ec2926fef42f3 100644 --- a/src/gui/macOS/fileproviderdomainmanager_mac.mm +++ b/src/gui/macOS/fileproviderdomainmanager_mac.mm @@ -418,6 +418,10 @@ QStringList configuredDomainIds() const const auto trReason = tr("%1 application has been closed. Reopen to reconnect.").arg(APPLICATION_NAME); disconnectFileProviderDomainForAccount(accountState, trReason); }); + + connect(FileProviderSettingsController::instance(), &FileProviderSettingsController::vfsEnabledAccountsChanged, + this, &FileProviderDomainManager::updateFileProviderDomains); + } else { qCWarning(lcMacFileProviderDomainManager()) << "Trying to run File Provider on system that does not support it."; }