Ensure FileProvider components instantiated after account setup

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-11-23 01:25:21 +08:00
parent d4d0cf550e
commit a6e3f18168

View file

@ -349,10 +349,6 @@ Application::Application(int &argc, char **argv)
connect(this, &SharedTools::QtSingleApplication::messageReceived, this, &Application::slotParseMessage);
#if defined(BUILD_FILE_PROVIDER_MODULE)
_fileProvider.reset(new Mac::FileProvider);
#endif
// create accounts and folders from a legacy desktop client or from the current config file
setupAccountsAndFolders();
@ -420,6 +416,10 @@ Application::Application(int &argc, char **argv)
AccountSetupCommandLineManager::instance()->setupAccountFromCommandLine();
}
AccountSetupCommandLineManager::destroy();
#if defined(BUILD_FILE_PROVIDER_MODULE)
_fileProvider.reset(new Mac::FileProvider);
#endif
}
Application::~Application()