plugins: route plugin popout clicks through PopoutManager

fixes #4011
This commit is contained in:
bbedward committed 2026-10-29 11:39:02 -04:00
1 parent 47f7f3d798
commit 8e8442fa76
1 file changed
+4 -3
@@ -11,6 +11,7 @@ Item {
property var surfaceContext: null
property var hostContext: null
property string widgetInstanceId: ""
readonly property string popoutTriggerId: widgetInstanceId || pluginId
property Component attachedContent: null
readonly property bool usesAttachedExpansion: !!attachedContent && ((surfaceContext?.inlineExpansion ?? false) || !hasPopout)
readonly property bool surfaceLive: (surfaceContext?.live ?? true) && effectiveVisible
@@ -352,17 +353,17 @@ Item {
if (usesAttachedExpansion && surfaceContext?.requestExpansion(root))
return;
if (hasPopout && positionPopout())
pluginPopout.toggle();
PopoutManager.requestPopout(pluginPopout, undefined, popoutTriggerId);
}
function triggerHoverPopout(widgetHostId) {
function triggerHoverPopout() {
if (pillClickAction) {
triggerPopout();
return;
}
if (!hasPopout || !positionPopout())
return;
PopoutManager.requestHoverPopout(pluginPopout, undefined, widgetHostId || pluginId);
PopoutManager.requestHoverPopout(pluginPopout, undefined, popoutTriggerId);
}
PluginPopout {