Skip to content

Commit

Permalink
fix(settings): now "use default extensions" and input are synchronize…
Browse files Browse the repository at this point in the history
…d in settings tab

Error was defined by case, when "use default extensions" was enabled, but extensions input was NOT hidden.

Part of fixes from #73
  • Loading branch information
Falcion committed Nov 5, 2024
1 parent e56c1bb commit aea3114
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,8 @@ export default class UNITADE_SETTINGS_TAB extends PluginSettingTab {
editorExtensionsInput.inputEl.style.height = '48px';
editorExtensionsInput.inputEl.style.minHeight = '36px';

this.__uptCEConfig([editorExtensionsInput, codeExtensionsWarn], !this.plugin.settings.code_editor_settings.use_default_extensions);

const editorFolding = new Setting(containerEl)
.setName(this.locale.getLocaleItem('CODE_EDITOR_FOLDING')[0]!)
.setDesc(this.locale.getLocaleItem('CODE_EDITOR_FOLDING')[1]!)
Expand Down

0 comments on commit aea3114

Please sign in to comment.