Update compendium-browser.js
parent
a04f8853b9
commit
43240d02c7
|
@ -242,7 +242,7 @@ class CompendiumBrowser extends Application {
|
||||||
if (setting === "allow-npc-browser") {
|
if (setting === "allow-npc-browser") {
|
||||||
this.settings.allowNpcBrowser = value;
|
this.settings.allowNpcBrowser = value;
|
||||||
}
|
}
|
||||||
this.saveSettings();
|
game.settings.set("compendium-browser", "settings", this.settings);
|
||||||
});
|
});
|
||||||
|
|
||||||
// activating or deactivating filters
|
// activating or deactivating filters
|
||||||
|
@ -1257,10 +1257,6 @@ class CompendiumBrowser extends Application {
|
||||||
this.settings = defaultSettings;
|
this.settings = defaultSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
saveSettings() {
|
|
||||||
game.settings.set("compendium-browser", "settings", this.settings);
|
|
||||||
}
|
|
||||||
|
|
||||||
//FILTERS - Added on the Ready hook
|
//FILTERS - Added on the Ready hook
|
||||||
//0.4.0 Make this async so filters can be added all at once
|
//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) {
|
async addFilter(entityType, category, label, path, type, possibleValues = null, valIsArray = false) {
|
||||||
|
|
Loading…
Reference in New Issue