💥 ags(popup-window): fix trying to close bgWindow twice

This commit is contained in:
retrozinndev
2025-05-10 18:15:02 -03:00
parent d853d2cd9a
commit 0ce10c1392
-2
View File
@@ -34,9 +34,7 @@ export function PopupWindow(props: PopupWindowProps): Widget.Window {
}, },
onKeyPressEvent: (self, event: Gdk.Event) => { onKeyPressEvent: (self, event: Gdk.Event) => {
if(event.get_keyval()[1] === Gdk.KEY_Escape) { if(event.get_keyval()[1] === Gdk.KEY_Escape) {
bgWindow.close();
self.close(); self.close();
return; return;
} }