Fix windows being brought back to life after the settings dialog was closed (#2613)

Fixed with the help of @jammehcow
This commit is contained in:
pajlada
2021-04-11 16:22:32 +02:00
committed by GitHub
parent 8779303845
commit c9f62fed4c
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -244,7 +244,10 @@ void BaseWindow::init()
getSettings()->windowTopMost.connect(
[this](bool topMost, auto) {
this->setWindowFlag(Qt::WindowStaysOnTopHint, topMost);
this->show();
if (this->isVisible())
{
this->show();
}
},
this->managedConnections_);
}