Skip to content

Commit

Permalink
Hide hidden settings (#630)
Browse files Browse the repository at this point in the history
* Hide hidden settings

* nit
  • Loading branch information
huchenlei committed Aug 25, 2024
1 parent 87ef469 commit f36c934
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/stores/settingStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ export const useSettingStore = defineStore('setting', {
settings: {}
}),
getters: {
// Setting tree structure used for the settings dialog display.
settingTree(): SettingTreeNode {
const root = buildTree(
Object.values(this.settings),
Object.values(this.settings).filter(
(setting: SettingParams) => setting.type !== 'hidden'
),
(setting: SettingParams) => setting.category || setting.id.split('.')
)

Expand Down

0 comments on commit f36c934

Please sign in to comment.