2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 23:25:15 +00:00

Initial support of separate windows for accounts.

This commit is contained in:
John Preston
2023-01-17 19:47:58 +04:00
parent 86ed2745e3
commit 7023b013ce
32 changed files with 323 additions and 143 deletions

View File

@@ -666,11 +666,8 @@ void MainWindow::closeEvent(QCloseEvent *e) {
e->accept();
Core::Quit();
return;
} else if (!isPrimary()) {
} else if (Core::App().closeNonLastAsync(&controller())) {
e->accept();
crl::on_main(this, [=] {
Core::App().closeWindow(&controller());
});
return;
}
e->ignore();