feat(ags): move closeWindowDelay to popup.ts

This commit is contained in:
matt1432 2024-02-05 10:37:56 -05:00
parent efa318d4d1
commit 47d1642e2e
5 changed files with 13 additions and 27 deletions
modules/ags/config/ts/misc

View file

@ -90,11 +90,16 @@ export class PopupWindow<
layer,
attribute,
setup: () => {
// Add way to make window open on startup
const id = App.connect('config-parsed', () => {
// Set close delay dynamically
App.closeWindowDelay[name] = transition_duration;
// Add way to make window open on startup
if (visible) {
App.openWindow(`${name}`);
}
// This connection should always run only once
App.disconnect(id);
});