From a6141011c2bed071eb908f4468274f44e18dc64a Mon Sep 17 00:00:00 2001 From: Aylur Date: Thu, 3 Oct 2024 21:39:40 +0000 Subject: docs: window toggling --- core/gjs/src/astalify.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'core/gjs/src') diff --git a/core/gjs/src/astalify.ts b/core/gjs/src/astalify.ts index a568a50..b69638b 100644 --- a/core/gjs/src/astalify.ts +++ b/core/gjs/src/astalify.ts @@ -19,11 +19,12 @@ function setChildren(parent: Gtk.Widget, children: Gtk.Widget[]) { if (ch) parent.remove(ch) } - else if (parent instanceof Gtk.Container && - !(parent instanceof Astal.Box || - parent instanceof Astal.Stack)) { - for(const ch of parent.get_children()) - parent.remove(ch) + else if ( + parent instanceof Gtk.Container && + !(parent instanceof Astal.Box || parent instanceof Astal.Stack) + ) { + for (const ch of parent.get_children()) + parent.remove(ch) } // TODO: add more container types -- cgit v1.2.3