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:
parent
e61984c2cf
commit
3f28d44d00
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user