This commit is contained in:
Dapoolp 2025-08-06 16:29:03 +02:00
parent c1a1e74bc4
commit 0e74ce0476
7 changed files with 99 additions and 69 deletions

View file

@ -43,6 +43,8 @@ export default class DhCharacterCreation extends HandlebarsApplicationMixin(Appl
};
this._dragDrop = this._createDragDropHandlers();
this.itemBrowser = null;
}
get title() {
@ -503,7 +505,7 @@ export default class DhCharacterCreation extends HandlebarsApplicationMixin(Appl
'system.domain': { key: 'system.domain', value: this.setup.class?.system.domains ?? null },
};
return new ItemBrowser({ presets }).render({ force: true });
return this.itemBrowser = await new ItemBrowser({ presets }).render({ force: true });
}
static async viewItem(_, target) {
@ -617,6 +619,7 @@ export default class DhCharacterCreation extends HandlebarsApplicationMixin(Appl
}
});
if(this.itemBrowser) this.itemBrowser.close();
this.close();
}