UI: Simplify log viewer on launch code

Removes redundant code when showing log viewer on start up.
master
Clayton Groeneveld 2021-05-09 20:14:18 -05:00
parent cec8e24630
commit 7aedf78338
1 changed files with 2 additions and 5 deletions

View File

@ -2068,11 +2068,8 @@ void OBSBasic::OnFirstLoad()
bool showLogViewerOnStartup = config_get_bool( bool showLogViewerOnStartup = config_get_bool(
App()->GlobalConfig(), "LogViewer", "ShowLogStartup"); App()->GlobalConfig(), "LogViewer", "ShowLogStartup");
if (showLogViewerOnStartup) { if (showLogViewerOnStartup)
if (!logView) on_actionViewCurrentLog_triggered();
logView = new OBSLogViewer();
logView->show();
}
} }
void OBSBasic::DeferredSysTrayLoad(int requeueCount) void OBSBasic::DeferredSysTrayLoad(int requeueCount)