|
@@ -5077,12 +5077,14 @@ void OBSBasic::on_previewDisabledLabel_customContextMenuRequested(
|
|
|
|
|
|
void OBSBasic::on_actionAlwaysOnTop_triggered()
|
|
|
{
|
|
|
- CloseDialogs();
|
|
|
-
|
|
|
+#ifndef _WIN32
|
|
|
/* Make sure all dialogs are safely and successfully closed before
|
|
|
* switching the always on top mode due to the fact that windows all
|
|
|
* have to be recreated, so queue the actual toggle to happen after
|
|
|
* all events related to closing the dialogs have finished */
|
|
|
+ CloseDialogs();
|
|
|
+#endif
|
|
|
+
|
|
|
QMetaObject::invokeMethod(this, "ToggleAlwaysOnTop",
|
|
|
Qt::QueuedConnection);
|
|
|
}
|