From 3f28d44d0008e70b54bd891c4749973f864daaae Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 15 Sep 2019 13:18:13 -0700 Subject: [PATCH] UI: Fix extra browser panels always creating on startup The extra browser panels would always create on startup due to the visibility change. This fixes that by ensuring that this call blocks signals, and ensures that the call only happens on first creation by the user and not when the user is loading on startup. --- UI/window-extra-browsers.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UI/window-extra-browsers.cpp b/UI/window-extra-browsers.cpp index c642da295..f6ff2d583 100644 --- a/UI/window-extra-browsers.cpp +++ b/UI/window-extra-browsers.cpp @@ -550,7 +550,11 @@ void OBSBasic::AddExtraBrowserDock(const QString &title, const QString &url, } QAction *action = AddDockWidget(dock); - action->setChecked(true); + if (firstCreate) { + action->blockSignals(true); + action->setChecked(true); + action->blockSignals(false); + } extraBrowserDocks.push_back(QSharedPointer(dock)); extraBrowserDockActions.push_back(QSharedPointer(action));