Преглед на файлове

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()