UI: Simplify log viewer on launch code
Removes redundant code when showing log viewer on start up.master
parent
cec8e24630
commit
7aedf78338
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue