mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +00:00
Don't quit on secondary window destroy by the system.
This commit is contained in:
parent
06e2724731
commit
0434e520fd
@ -216,7 +216,13 @@ void MainWindow::shadowsDeactivate() {
|
||||
}
|
||||
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user