Skip to content

Commit

Permalink
Don't use setFlags in roll dialogs (foundryvtt#11193)
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam committed Nov 10, 2023
1 parent 82182d2 commit 5d7d7ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/module/system/check/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class CheckModifiersDialog extends Application {
// Toggle show dialog default
const toggle = htmlQuery<HTMLInputElement>(html, "input[data-action=change-show-default]");
toggle?.addEventListener("click", async () => {
await game.user.setFlag("pf2e", "settings.showCheckDialogs", toggle.checked);
await game.user.update({ "flags.pf2e.settings.showCheckDialogs": toggle.checked });
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/module/system/damage/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class DamageModifierDialog extends Application {
// Toggle show dialog default
const toggle = htmlQuery<HTMLInputElement>(html, "input[data-action=change-show-default]");
toggle?.addEventListener("click", async () => {
await game.user.setFlag("pf2e", "settings.showDamageDialogs", toggle.checked);
await game.user.update({ "flags.pf2e.settings.showDamageDialogs": toggle.checked });
});
}

Expand Down

0 comments on commit 5d7d7ed

Please sign in to comment.