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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user