Skip to content

Commit caf9d7d

Browse files
committed
v0.1.8
1 parent e9ae21e commit caf9d7d

3 files changed

Lines changed: 8 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.1.8
2+
3+
- Correct use of `requiresReload` for setting changes.
4+
15
# 0.1.7
26

37
- Bump compatibility for v12.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "notelicker",
3-
"version": "0.1.7",
3+
"version": "0.1.8",
44
"author": "MrPrimate",
55
"description": "Foundry VTT module for enhancing notes and their icons",
66
"private": true,

src/constants.mjs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { DirectoryPicker } from "./lib/DirectoryPicker.mjs";
22

3-
const debouncedReload = foundry.utils.debounce(() => window.location.reload(), 100);
4-
53
const CONSTANTS = {
64
MODULE_NAME: "Note Licker",
75
SHORT_NAME: "NoteLicker",
@@ -60,14 +58,6 @@ const CONSTANTS = {
6058
};
6159

6260
CONSTANTS.DEFAULT_SETTINGS = {
63-
[CONSTANTS.SETTINGS.USE_CUSTOM_COMPENDIUM_MAPPINGS]: {
64-
name: `${CONSTANTS.SHORT_NAME}.Settings.UseCustomCompendiumMappings.Name`,
65-
scope: "world",
66-
config: false,
67-
type: Boolean,
68-
default: false,
69-
},
70-
7161
// debug
7262
[CONSTANTS.SETTINGS.LOG_LEVEL]: {
7363
name: `${CONSTANTS.SHORT_NAME}.Settings.LogLevel.Name`,
@@ -92,7 +82,7 @@ CONSTANTS.DEFAULT_SETTINGS = {
9282
config: true,
9383
type: Boolean,
9484
default: true,
95-
onChange: debouncedReload,
85+
requiresReload: true,
9686
},
9787

9888
[CONSTANTS.SETTINGS.ENABLE_ANCHOR_LINKS]: {
@@ -102,7 +92,7 @@ CONSTANTS.DEFAULT_SETTINGS = {
10292
config: true,
10393
type: Boolean,
10494
default: true,
105-
onChange: debouncedReload,
95+
requiresReload: true,
10696
},
10797

10898
[CONSTANTS.SETTINGS.ENABLE_ICON_BORDER_REMOVAL]: {
@@ -112,7 +102,7 @@ CONSTANTS.DEFAULT_SETTINGS = {
112102
config: true,
113103
type: Boolean,
114104
default: false,
115-
onChange: debouncedReload,
105+
requiresReload: true,
116106
},
117107

118108
[CONSTANTS.SETTINGS.ICON_UPLOAD_DIR]: {

0 commit comments

Comments
 (0)