Fix actor image editing by removing static modifier from _onEditImage method

This commit is contained in:
Alexander Minges 2025-07-29 20:28:09 +02:00
parent f643999573
commit bdfba8cacc
Signed by: Athemis
GPG key ID: 31FBDEF92DDB162B

View file

@ -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();
}
}