Fix "Always on top" setting for MacOS and Linux (#1708)

Closes #1166
This commit is contained in:
Daniel
2020-05-30 05:32:25 -04:00
committed by GitHub
parent 6d5ba0c442
commit ccdbedb93c
+8 -3
View File
@@ -214,9 +214,14 @@ void BaseWindow::init()
}); });
} }
#else #else
// if (getSettings()->windowTopMost.getValue()) { // TopMost flag overrides setting
// this->setWindowFlag(Qt::WindowStaysOnTopHint); if (!this->flags_.has(TopMost))
// } {
getSettings()->windowTopMost.connect([this](bool topMost, auto) {
this->setWindowFlag(Qt::WindowStaysOnTopHint, topMost);
this->show();
});
}
#endif #endif
} }