mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
Clarify settings preference boundaries
This commit is contained in:
parent
d8937f3191
commit
693cc5bf11
1 changed files with 8 additions and 2 deletions
|
|
@ -60,7 +60,13 @@ export class CodexPanelSettingTab extends PluginSettingTab {
|
|||
containerEl.addClass("codex-panel-settings");
|
||||
|
||||
this.renderHeaderActions(containerEl, SETTINGS_INTRO_TEXT);
|
||||
this.renderPanelPreferenceSections(containerEl);
|
||||
this.renderCodexDynamicSections(containerEl);
|
||||
|
||||
this.maybeAutoLoadSettingsData();
|
||||
}
|
||||
|
||||
private renderPanelPreferenceSections(containerEl: HTMLElement): void {
|
||||
const configSection = containerEl.createDiv({ cls: "codex-panel-settings__section codex-panel-settings__general-section" });
|
||||
|
||||
new Setting(configSection)
|
||||
|
|
@ -184,7 +190,9 @@ export class CodexPanelSettingTab extends PluginSettingTab {
|
|||
text: this.modelsLifecycle.status,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private renderCodexDynamicSections(containerEl: HTMLElement): void {
|
||||
renderArchivedThreadSection(containerEl, {
|
||||
exportEnabled: this.plugin.settings.archiveExportEnabled,
|
||||
exportFolderTemplate: this.plugin.settings.archiveExportFolderTemplate,
|
||||
|
|
@ -211,8 +219,6 @@ export class CodexPanelSettingTab extends PluginSettingTab {
|
|||
onTrust: (hook) => void this.trustHook(hook),
|
||||
onToggleEnabled: (hook, enabled) => void this.setHookEnabled(hook, enabled),
|
||||
});
|
||||
|
||||
this.maybeAutoLoadSettingsData();
|
||||
}
|
||||
|
||||
private renderHeaderActions(containerEl: HTMLElement, introText: string): void {
|
||||
|
|
|
|||
Loading…
Reference in a new issue