mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Updater: Ensure folders are not removed #3747
This commit is contained in:
parent
9cfa63eed8
commit
4144d4672f
1 changed files with 4 additions and 0 deletions
|
@ -186,6 +186,10 @@ Application::Application(int &argc, char **argv) :
|
|||
|
||||
Application::~Application()
|
||||
{
|
||||
// Make sure all folders are gone, otherwise removing the
|
||||
// accounts will remove the associated folders from the settings.
|
||||
FolderMan::instance()->unloadAndDeleteAllFolders();
|
||||
|
||||
// Remove the account from the account manager so it can be deleted.
|
||||
AccountManager::instance()->shutdown();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue