Fix ArcMenu init after dtp and only child in leftbox

gh-2248
This commit is contained in:
Charles Gagnon
2025-03-10 11:20:11 -04:00
parent 7309d801f2
commit 93dfce4fb1

View File

@@ -531,16 +531,9 @@ export const Panel = GObject.registerClass(
let allocationMap = this.allocationMap[pos.element]
if (allocationMap.actor) {
let considerActor =
pos.visible &&
(pos.element == Pos.DESKTOP_BTN ||
allocationMap.actor.get_children().length)
allocationMap.actor.visible = pos.visible
allocationMap.actor.visible = considerActor
if (!considerActor) {
return
}
if (!pos.visible) return
// if the panel length is dynamic, get all visible
// elements as a single group