mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't quit on secondary window destroy by the system.
This commit is contained in:
parent
06e2724731
commit
0434e520fd
1 changed files with 7 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue