提交 3f28d44d 编写于 作者: J jp9000

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.
上级 e61984c2
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册