UI: Simplify log viewer on launch code

Removes redundant code when showing log viewer on start up.
This commit is contained in:
Clayton Groeneveld 2021-05-09 20:14:18 -05:00
parent cec8e24630
commit 7aedf78338

View file

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