Merge pull request #8624 from nextcloud/bugfix/noid/macvfs-do-not-create-folder-on-accountsetup

fix(wizard): avoid creating useless folders when setting up a VFS connection on Mac
This commit is contained in:
Matthieu Gallien 2025-08-21 17:36:55 +02:00 committed by GitHub
commit 45a3dc4201
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -479,6 +479,14 @@ bool OwncloudSetupWizard::checkDowngradeAdvised(QNetworkReply *reply)
void OwncloudSetupWizard::slotCreateLocalAndRemoteFolders(const QString &localFolder, const QString &remoteFolder)
{
#ifdef BUILD_FILE_PROVIDER_MODULE
if (Mac::FileProvider::fileProviderAvailable() && _ocWizard->useVirtualFileSync()) {
qCInfo(lcWizard) << "Not creating local/remote folders as because macOS File Provider uses its own sync root";
finalizeSetup(true);
return;
}
#endif
qCInfo(lcWizard) << "Setup local sync folder for new oC connection " << localFolder;
const QDir fi(localFolder);