Ensure FileProvider gets set up after accountmanager has set up accounts

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-03-11 12:43:37 +01:00
parent 85b9e7df03
commit dcf39aa9d0
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -375,8 +375,6 @@ Application::Application(int &argc, char **argv)
_folderManager.reset(new FolderMan);
#if defined(Q_OS_WIN)
_shellExtensionsServer.reset(new ShellExtensionsServer);
#elif defined(Q_OS_MACOS)
_fileProvider.reset(Mac::FileProvider::instance());
#endif
connect(this, &SharedTools::QtSingleApplication::messageReceived, this, &Application::slotParseMessage);
@ -404,6 +402,10 @@ Application::Application(int &argc, char **argv)
}
}
#ifdef Q_OS_MACOS
_fileProvider.reset(Mac::FileProvider::instance());
#endif
FolderMan::instance()->setSyncEnabled(true);
setQuitOnLastWindowClosed(false);