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.
This commit is contained in:
Matt Gajownik
2020-08-25 14:09:25 +10:00
parent d310f1532b
commit fca5e45f22

View File

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