From dcf39aa9d04f098b4aea40bcf7dca25daab1ece5 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Sat, 11 Mar 2023 12:43:37 +0100 Subject: [PATCH] Ensure FileProvider gets set up after accountmanager has set up accounts Signed-off-by: Claudio Cambra --- src/gui/application.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 2ab170c582..4d6b25c629 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -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);