From 42ad4c5b26b77871026be76e5efbe89468662543 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 24 Oct 2023 22:16:29 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20Restauration=20TMR=20si=20minimis=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lors d'une action dans les TMRs, si la fenêtre est minimisée, on la réaffiche --- module/rdd-tmr-dialog.js | 1 + module/rdd-tmr-rencontre-dialog.js | 2 +- templates/dialog-tmr.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/rdd-tmr-dialog.js b/module/rdd-tmr-dialog.js index 415f8574..37561dbb 100644 --- a/module/rdd-tmr-dialog.js +++ b/module/rdd-tmr-dialog.js @@ -83,6 +83,7 @@ export class RdDTMRDialog extends Dialog { } async restoreTMRAfterAction() { this.subdialog = undefined + await this.maximize(); this.bringToTop(); } diff --git a/module/rdd-tmr-rencontre-dialog.js b/module/rdd-tmr-rencontre-dialog.js index 97c4dc2d..495d0b10 100644 --- a/module/rdd-tmr-rencontre-dialog.js +++ b/module/rdd-tmr-rencontre-dialog.js @@ -46,7 +46,7 @@ export class RdDTMRRencontreDialog extends Dialog { } else { ui.notifications.info("Vous devez résoudre la rencontre."); - this.actor.tmrApp.forceTMRContinueAction(); + return this.actor.tmrApp.forceTMRContinueAction(); } } else { diff --git a/templates/dialog-tmr.html b/templates/dialog-tmr.html index 3c170609..6ca5ed09 100644 --- a/templates/dialog-tmr.html +++ b/templates/dialog-tmr.html @@ -1,4 +1,5 @@
+
@@ -52,6 +53,5 @@
-