UI: Save custom browser docks with docks data
When saving custom browser docks, docks properties are used rather than actions properties.
This commit is contained in:
parent
b4b1b4c5d3
commit
2a0e3c0c9b
@ -491,11 +491,11 @@ void OBSBasic::SaveExtraBrowserDocks()
|
||||
{
|
||||
Json::array array;
|
||||
for (int i = 0; i < extraBrowserDocks.size(); i++) {
|
||||
QAction *action = extraBrowserDockActions[i].data();
|
||||
QDockWidget *dock = extraBrowserDocks[i].data();
|
||||
QString url = extraBrowserDockTargets[i];
|
||||
QString uuid = action->property("uuid").toString();
|
||||
QString uuid = dock->property("uuid").toString();
|
||||
Json::object obj{
|
||||
{"title", QT_TO_UTF8(action->text())},
|
||||
{"title", QT_TO_UTF8(dock->windowTitle())},
|
||||
{"url", QT_TO_UTF8(url)},
|
||||
{"uuid", QT_TO_UTF8(uuid)},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user