mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Separate file provider domain updating into separate slot
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
ee6c081603
commit
15525bca62
2 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue