💥 ags(popup-window, ask-popup): fix unexpected behaviors, removed onClose() and closeAction() support

This commit is contained in:
retrozinndev
2025-04-16 19:44:18 -03:00
parent cc043e4e55
commit 5376eb6576
7 changed files with 39 additions and 45 deletions
+5 -6
View File
@@ -47,11 +47,7 @@ export namespace Runner {
};
export function close() {
[...plugins.values()].map(plugin =>
plugin && plugin.onClose && plugin.onClose());
runnerInstance?.close();
runnerInstance = null;
}
const plugins = new Set<Runner.Plugin>([]);
@@ -181,9 +177,12 @@ export namespace Runner {
event.get_keyval()[1] === Gdk.KEY_F5 &&
updateApps();
},
closeAction: () => {
onDestroy: () => {
subs.map(sub => sub());
close();
[...plugins.values()].map(plugin =>
plugin && plugin.onClose && plugin.onClose());
runnerInstance = null;
},
child: new Widget.Box({
className: "runner main",