From 41b90d0819e49047b37b0631fdf85d11bd0ca94c Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 28 Feb 2026 00:57:38 -0700 Subject: [PATCH] Open the sub-controls for a character sheet in the same window as the main sheet (closes #3) --- module/apps/PlayerSheet.mjs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/module/apps/PlayerSheet.mjs b/module/apps/PlayerSheet.mjs index d38ec38..84fb281 100644 --- a/module/apps/PlayerSheet.mjs +++ b/module/apps/PlayerSheet.mjs @@ -159,7 +159,10 @@ export class PlayerSheet extends HandlebarsApplicationMixin(ActorSheetV2) { if (this.#attributeManager.rendered) { await this.#attributeManager.bringToFront(); } else { - await this.#attributeManager.render({ force: true }); + await this.#attributeManager.render({ + force: true, + window: { windowId: this.window.windowId }, + }); }; }; @@ -173,7 +176,10 @@ export class PlayerSheet extends HandlebarsApplicationMixin(ActorSheetV2) { top: this.position.top + 40, left: this.position.left + ((this.position.width - 60) / 2), }, - }).render({ force: true }); + }).render({ + force: true, + window: { windowId: this.window.windowId }, + }); }; // #endregion Actions };