From 8e2c4a93020c5bfeef30223ddef88034fa09c391 Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Tue, 1 Apr 2025 11:45:19 -0300 Subject: [PATCH] :boom: fix(ags/windows): also notify open-windows on connection --- ags/windows.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ags/windows.ts b/ags/windows.ts index c00baa3..cba9ccd 100644 --- a/ags/windows.ts +++ b/ags/windows.ts @@ -84,11 +84,14 @@ export const Windows = GObject.registerClass({ if(Array.isArray(this.openWindows[name])) { this.#windowConnections[name] = this.openWindows[name].map(win => [ win.connect("map", (window) => { + if(this.isVisible(name)) return; this.#openWindows[name] = window; + this.notify("open-windows"); }), win.connect("destroy", () => { this.disconnectWindow(name); delete this.#openWindows[name]; + this.notify("open-windows"); }) ]); @@ -97,11 +100,14 @@ export const Windows = GObject.registerClass({ this.#windowConnections[name] = [ this.openWindows[name].connect("map", (window) => { + if(this.isVisible(name)) return; this.#openWindows[name] = window; + this.notify("open-windows"); }), this.openWindows[name].connect("destroy", () => { this.disconnectWindow(name); delete this.#openWindows[name]; + this.notify("open-windows"); }) ]; }