Преглед изворни кода

UI: Bring Log Viewer to front instead of closing

This changes the "View Current Log" option in the
Help menu from a toggle to always open the log viewer,
and bring it to the front when it's already open.
Matt Gajownik пре 5 година
родитељ
комит
fca5e45f22
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      UI/window-basic-main.cpp

+ 6 - 1
UI/window-basic-main.cpp

@@ -5299,7 +5299,12 @@ void OBSBasic::on_actionUploadLastLog_triggered()
 
 void OBSBasic::on_actionViewCurrentLog_triggered()
 {
-	logView->setVisible(!logView->isVisible());
+	if (!logView->isVisible()) {
+		logView->setVisible(true);
+	} else {
+		logView->activateWindow();
+		logView->raise();
+	}
 }
 
 void OBSBasic::on_actionShowCrashLogs_triggered()