UI: Fix browser docks being unchecked when created

In the view -> Docks menu, when a user first creates a custom browser
dock, the menu item associated with them used to hide/show them will be
unchecked in the menu by mistake.  This ensures they're checked when
first created.
This commit is contained in:
jp9000
2019-09-14 19:36:33 -07:00
parent 3064887ae2
commit 5d19786e04

View File

@@ -549,8 +549,10 @@ void OBSBasic::AddExtraBrowserDock(const QString &title, const QString &url,
dock->setVisible(true);
}
QAction *action = AddDockWidget(dock);
action->setChecked(true);
extraBrowserDocks.push_back(QSharedPointer<QDockWidget>(dock));
extraBrowserDockActions.push_back(
QSharedPointer<QAction>(AddDockWidget(dock)));
extraBrowserDockActions.push_back(QSharedPointer<QAction>(action));
extraBrowserDockTargets.push_back(url);
}