diff --git a/src/renderer/startup.ts b/src/renderer/startup.ts index 73a452d6..f4d35d82 100644 --- a/src/renderer/startup.ts +++ b/src/renderer/startup.ts @@ -20,6 +20,7 @@ import * as extension from '@fe/others/extension' import { setTheme } from '@fe/services/theme' import { toggleOutline } from '@fe/services/workbench' import * as view from '@fe/services/view' +import * as tree from '@fe/services/tree' import * as editor from '@fe/services/editor' import plugins from '@fe/plugins' import ctx from '@fe/context' @@ -147,6 +148,10 @@ registerHook('SETTING_CHANGED', ({ schema, changedKeys }) => { } }) } + + if (changedKeys.includes('tree.exclude')) { + tree.refreshTree() + } }) registerHook('EXTENSION_READY', () => {