mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-29 14:37:47 -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 {
|
||||
|
||||
Reference in new issue
Block a user