IPC: allow IPC calls to open panels when the bar is invisible.

This commit is contained in:
ItsLemmy
2025-11-03 22:05:35 -05:00
parent c4fa8a9485
commit c911756f5e
2 changed files with 5 additions and 4 deletions
+3
View File
@@ -451,6 +451,9 @@ PanelWindow {
id: barLoader
asynchronous: false
sourceComponent: root.barComponent
// Keep bar loaded but hide it when BarService.isVisible is false
// This allows panels to remain accessible via IPC
visible: BarService.isVisible
// Fill parent to provide dimensions for Bar to reference
anchors.fill: parent
+2 -4
View File
@@ -206,8 +206,6 @@ ShellRoot {
property bool shouldBeActive: {
if (!i18nLoaded || !settingsLoaded)
return false
if (!BarService.isVisible)
return false
if (!modelData || !modelData.name)
return false
@@ -283,9 +281,9 @@ ShellRoot {
}
// BarExclusionZone - created after NFullScreenWindow has fully loaded
// Must also be disabled when bar is disabled (follows shouldBeActive)
// Must also be disabled when bar is hidden
Loader {
active: parent.windowLoaded && parent.shouldBeActive
active: parent.windowLoaded && parent.shouldBeActive && BarService.isVisible
asynchronous: false
sourceComponent: BarExclusionZone {