PluginSystem: respect allowAttach

This commit is contained in:
ItsLemmy
2025-11-30 21:50:34 -05:00
parent 90ba6ac6b4
commit e705544c0e
2 changed files with 8 additions and 7 deletions
+7 -1
View File
@@ -691,7 +691,13 @@ Item {
anchors.fill: parent
// Screen-dependent attachment properties
readonly property bool allowAttach: Settings.data.ui.panelsAttachedToBar || root.forceAttachToBar
// Allow panel content to override allowAttach (e.g., plugin panels)
readonly property bool allowAttach: {
if (contentLoader.item && contentLoader.item.allowAttach !== undefined) {
return contentLoader.item.allowAttach;
}
return Settings.data.ui.panelsAttachedToBar || root.forceAttachToBar;
}
readonly property bool allowAttachToBar: {
if (!(Settings.data.ui.panelsAttachedToBar || root.forceAttachToBar) || Settings.data.bar.backgroundOpacity < 1.0) {
return false;