Update file provider domain enablement status upon settings change

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-09-06 15:45:56 +08:00
parent 15525bca62
commit e4aeb5b481
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -438,6 +438,9 @@ void FileProviderDomainManager::start()
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);
}
void FileProviderDomainManager::setupFileProviderDomains()