fix: add missing debug toggle button

This commit is contained in:
Al0cam 2026-05-18 09:49:07 +02:00
parent a31fdaf936
commit c3d9e388a0

View file

@ -161,5 +161,18 @@ export class SettingsTab extends PluginSettingTab {
tagSection(containerEl, this.plugin, this.display);
exclusionSection(containerEl, this.plugin, this.display);
projectSection(containerEl, this.plugin, this.display);
new Setting(containerEl).setName("Advanced").setHeading();
new Setting(containerEl)
.setName("Debug logging")
.setDesc(
"Log verbose debug messages to the developer console (Ctrl+Shift+I). Leave off unless diagnosing an issue.",
)
.addToggle((cb) =>
cb.setValue(this.plugin.settings.debugLogging).onChange(async (value) => {
this.plugin.settings.debugLogging = value;
await this.plugin.saveData(this.plugin.settings);
}),
);
};
}