mirror of
https://github.com/al0cam/AutoMover.git
synced 2026-07-22 05:41:25 +00:00
fix: add missing debug toggle button
This commit is contained in:
parent
a31fdaf936
commit
c3d9e388a0
1 changed files with 13 additions and 0 deletions
|
|
@ -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);
|
||||
}),
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue