Skip to content

Commit

Permalink
Update the (un)synced space count when a sync is removed
Browse files Browse the repository at this point in the history
Fixes: #11787
  • Loading branch information
erikjv committed Aug 9, 2024
1 parent e60e934 commit 190c9f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/accountsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,10 @@ void AccountSettings::slotRemoveCurrentFolder(Folder *folder)
messageBox->setAttribute(Qt::WA_DeleteOnClose);
QPushButton *yesButton = messageBox->addButton(tr("Remove Folder Sync Connection"), QMessageBox::YesRole);
messageBox->addButton(tr("Cancel"), QMessageBox::NoRole);
connect(messageBox, &QMessageBox::finished, this, [messageBox, yesButton, folder] {
connect(messageBox, &QMessageBox::finished, this, [messageBox, yesButton, folder, this] {
if (messageBox->clickedButton() == yesButton) {
FolderMan::instance()->removeFolder(folder);
QTimer::singleShot(0, this, &AccountSettings::slotSpacesUpdated);
}
});
messageBox->open();
Expand Down

0 comments on commit 190c9f1

Please sign in to comment.