From bdfba8cacc8a8270ad99d073e87fd9c5462a4989 Mon Sep 17 00:00:00 2001 From: Alexander Minges Date: Tue, 29 Jul 2025 20:28:09 +0200 Subject: [PATCH] Fix actor image editing by removing static modifier from _onEditImage method --- src/apps/actor/base-sheet.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/apps/actor/base-sheet.js b/src/apps/actor/base-sheet.js index 0d2193ca..0aec8f18 100644 --- a/src/apps/actor/base-sheet.js +++ b/src/apps/actor/base-sheet.js @@ -682,11 +682,11 @@ export class DS4ActorSheet extends foundry.applications.api.HandlebarsApplicatio /** - * Handle editing the actor's portrait image + * Handle editing the actor's image * @param {Event} event - The triggering event * @param {HTMLElement} target - The target element */ - static async _onEditImage(event, target) { + async _onEditImage(event, target) { const field = target.dataset.field || "img"; const current = foundry.utils.getProperty(this.document, field); @@ -695,7 +695,6 @@ export class DS4ActorSheet extends foundry.applications.api.HandlebarsApplicatio current: current, callback: (path) => this.document.update({ [field]: path }), }); - return fp.browse(); } }