mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
BaseWindow: Make sure windowTopMost signal is attached to our list of managed connections
This commit is contained in:
parent
78dab081d8
commit
dad9677bba
1 changed files with 6 additions and 4 deletions
|
@ -217,10 +217,12 @@ void BaseWindow::init()
|
||||||
// TopMost flag overrides setting
|
// TopMost flag overrides setting
|
||||||
if (!this->flags_.has(TopMost))
|
if (!this->flags_.has(TopMost))
|
||||||
{
|
{
|
||||||
getSettings()->windowTopMost.connect([this](bool topMost, auto) {
|
getSettings()->windowTopMost.connect(
|
||||||
|
[this](bool topMost, auto) {
|
||||||
this->setWindowFlag(Qt::WindowStaysOnTopHint, topMost);
|
this->setWindowFlag(Qt::WindowStaysOnTopHint, topMost);
|
||||||
this->show();
|
this->show();
|
||||||
});
|
},
|
||||||
|
this->managedConnections_);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue