mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
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:
parent
85b9e7df03
commit
dcf39aa9d0
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue