From 199c5cf05f18fd2d3086cbdef93958e695a8bd75 Mon Sep 17 00:00:00 2001 From: Iulian Onofrei <5748627+revolter@users.noreply.github.com> Date: Wed, 28 Feb 2024 23:25:00 +0200 Subject: [PATCH] Fixed "include chess puzzles" setting being enabled with the recipe disabled --- src/settings/RecipesSettingsTab.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/settings/RecipesSettingsTab.ts b/src/settings/RecipesSettingsTab.ts index 472996e..1a1cd6a 100644 --- a/src/settings/RecipesSettingsTab.ts +++ b/src/settings/RecipesSettingsTab.ts @@ -57,6 +57,8 @@ export class RecipesSettingsTab extends PluginSettingTab { ); extraSettingsAdder.activate(async () => { await this.settingsManager.saveSettings(); }); + + this.#setSettingsEnabled(extraSettings, settings.isActive); } #addIQPuzzlesSettings(settings: IQPuzzlesRecipeSettings, settingsAdder: SettingsAdder) {