Activate parameter editor panel when jumping from node view

Call setAsCurrentTab() and activateWindow() on the ParamPanel dock widget
in ShowSelectedNodeInParamEditor so the parameter editor becomes the active
tab/window when invoked from the node view context menu or Shift+P shortcut.
This commit is contained in:
2026-07-13 10:19:30 +08:00
parent dba76ea9f2
commit 21ae1125f5
+2 -1
View File
@@ -1686,7 +1686,8 @@ void NodeView::ShowSelectedNodeInParamEditor()
if (PanelWidget *panel = PanelManager::instance()->GetPanelWithName(
QStringLiteral("ParamPanel"))) {
panel->show();
panel->raise();
panel->setAsCurrentTab();
panel->activateWindow();
panel->setFocus(Qt::OtherFocusReason);
}
}