mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Ignore empty position elements
This commit is contained in:
@@ -537,9 +537,12 @@ export const Panel = GObject.registerClass(
|
||||
let allocationMap = this.allocationMap[pos.element]
|
||||
|
||||
if (allocationMap.actor) {
|
||||
allocationMap.actor.visible = pos.visible
|
||||
let considerActor =
|
||||
pos.visible && allocationMap.actor.get_children().length
|
||||
|
||||
if (!pos.visible) {
|
||||
allocationMap.actor.visible = considerActor
|
||||
|
||||
if (!considerActor) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user