mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +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() {
|
void MainWindow::destroyedFromSystem() {
|
||||||
Core::Quit();
|
if (isPrimary()) {
|
||||||
|
Core::Quit();
|
||||||
|
} else {
|
||||||
|
crl::on_main(this, [=] {
|
||||||
|
Core::App().closeWindow(&controller());
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int32 MainWindow::screenNameChecksum(const QString &name) const {
|
int32 MainWindow::screenNameChecksum(const QString &name) const {
|
||||||
|
Reference in New Issue
Block a user