mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Don't quit on secondary window destroy by the system.
This commit is contained in:
@@ -216,7 +216,13 @@ void MainWindow::shadowsDeactivate() {
|
||||
}
|
||||
|
||||
void MainWindow::destroyedFromSystem() {
|
||||
if (isPrimary()) {
|
||||
Core::Quit();
|
||||
} else {
|
||||
crl::on_main(this, [=] {
|
||||
Core::App().closeWindow(&controller());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
int32 MainWindow::screenNameChecksum(const QString &name) const {
|
||||
|
Reference in New Issue
Block a user