djmango / obsidian-transcription

Obsidian plugin to create high-quality transcriptions from markdown linked audio files
https://swiftink.io
MIT License
156 stars 17 forks source link

Refactor settings module visibility controls #49

Closed bscholer closed 8 months ago

bscholer commented 8 months ago

I've made changes to streamline the way we handle the visibility of certain settings in our settings module. After working on PR #46, I noticed we were repeating the same code for controlling visibility across multiple places. To clean this up, I introduced a new function, updateSettingVisibility(classSelector, visible), which consolidates the logic into a single, reusable method. This approach not only reduces duplication but also makes our code easier to maintain and understand.

djmango commented 8 months ago

LGTM