Skip to content

Commit

Permalink
Added option to disable folders inside compendiums
Browse files Browse the repository at this point in the history
  • Loading branch information
earlSt1 committed Oct 14, 2022
1 parent b50a62d commit 2131f88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions compendium-folders.js
Original file line number Diff line number Diff line change
Expand Up @@ -1930,6 +1930,15 @@ export class Settings {
type: Boolean,
default: false,
});
game.settings.register(mod, "disable-fic", {
name: "Disable Folders inside Compendiums",
hint: "If enabled, the Folders Inside Compendiums part of the module will be disabled",
scope: "world",
config: true,
type: Boolean,
default: false,
requiresReload: true
});
game.settings.register(mod, "auto-create-folders", {
name: "Auto Create folders on Import",
hint: "If enabled, dragging a document from a compendium into your world will create folder structures automatically",
Expand Down
3 changes: 3 additions & 0 deletions fic-folders.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,9 @@ export class FICCache {
//------------------------
export class FICManager {
static setup() {
if (game.settings.get(mod,'disable-fic')){
return;
}
// Hooking into the update/create methods to extract
// folder data from the entity
// and create folders based on them
Expand Down

0 comments on commit 2131f88

Please sign in to comment.