mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Ensure FileProvider components instantiated after account setup
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
d4d0cf550e
commit
a6e3f18168
1 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue