mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-02-05 20:12:13 -05:00
UI: Simplify log viewer on launch code
Removes redundant code when showing log viewer on start up.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user