Fixed so that CompendiumSetting saving refreshes the CompendiumBrowser for all users

This commit is contained in:
WBHarry 2026-02-08 16:03:46 +01:00
parent 1ee581055a
commit ed77ae3c91
3 changed files with 36 additions and 2 deletions

View file

@ -123,6 +123,16 @@ export default class CompendiumBrowserSettings extends HandlebarsApplicationMixi
CONFIG.DH.SETTINGS.gameSettings.CompendiumBrowserSettings,
settings.toObject()
);
this.updated = true;
this.close();
}
static async configure() {
return new Promise(resolve => {
const app = new this();
app.addEventListener('close', () => resolve(app.updated), { once: true });
app.render({ force: true });
});
}
}