parent
efa318d4d1
commit
47d1642e2e
5 changed files with 13 additions and 27 deletions
modules/ags/config/ts/misc
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue