Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
fix: Crafting selection is not persisted
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed May 4, 2022
1 parent e1a30a9 commit a27bfff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/userscript/source/ui/CraftSettingsUi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ export class CraftSettingsUi extends SettingsSectionUi<CraftSettings> {
): JQuery<HTMLElement> {
const element = this._getOption(name, option, label, delimiter, {
onCheck: () => {
option.enabled = true;
this._host.updateOptions(() => (option.enabled = true));
this._host.imessage("status.auto.enable", [label]);
},
onUnCheck: () => {
option.enabled = false;
this._host.updateOptions(() => (option.enabled = false));
this._host.imessage("status.auto.disable", [label]);
},
});
Expand Down

0 comments on commit a27bfff

Please sign in to comment.