0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

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.
This commit is contained in:
jp9000 2019-09-15 13:18:13 -07:00
parent e61984c2cf
commit 3f28d44d00

View File

@ -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<QDockWidget>(dock));
extraBrowserDockActions.push_back(QSharedPointer<QAction>(action));