mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-06 15:46:13 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user