From 43240d02c7f4a0ffe3e0a3b3ac4c5221652267ce Mon Sep 17 00:00:00 2001 From: Matheus Clemente Date: Thu, 9 Nov 2023 13:42:01 -0300 Subject: [PATCH] Update compendium-browser.js --- compendium-browser.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/compendium-browser.js b/compendium-browser.js index 0c5ca78..b93a2d2 100644 --- a/compendium-browser.js +++ b/compendium-browser.js @@ -242,7 +242,7 @@ class CompendiumBrowser extends Application { if (setting === "allow-npc-browser") { this.settings.allowNpcBrowser = value; } - this.saveSettings(); + game.settings.set("compendium-browser", "settings", this.settings); }); // activating or deactivating filters @@ -1257,10 +1257,6 @@ class CompendiumBrowser extends Application { this.settings = defaultSettings; } - saveSettings() { - game.settings.set("compendium-browser", "settings", this.settings); - } - //FILTERS - Added on the Ready hook //0.4.0 Make this async so filters can be added all at once async addFilter(entityType, category, label, path, type, possibleValues = null, valIsArray = false) {