Separate file provider domain updating into separate slot

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-09-06 15:44:34 +08:00
parent ee6c081603
commit 15525bca62
No known key found for this signature in database
GPG key ID: C839200C384636B0
2 changed files with 9 additions and 0 deletions

View file

@ -40,6 +40,7 @@ signals:
private slots:
void setupFileProviderDomains();
void updateFileProviderDomains();
void addFileProviderDomainForAccount(const OCC::AccountState * const accountState);
void removeFileProviderDomainForAccount(const OCC::AccountState * const accountState);

View file

@ -447,6 +447,14 @@ void FileProviderDomainManager::setupFileProviderDomains()
}
d->findExistingFileProviderDomains();
updateFileProviderDomains();
}
void FileProviderDomainManager::updateFileProviderDomains()
{
if (!d) {
return;
}
const auto vfsEnabledAccounts = FileProviderSettingsController::instance()->vfsEnabledAccounts();
auto domainsToRemove = d->configuredDomainIds();