Skip to content

Commit

Permalink
fix: fix watch editor change
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Jan 19, 2024
1 parent 1e1822e commit 4dfc2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ onBeforeUnmount(() => {
FileTabs.removeActionBtnTapper(tabsActionBtnTapper)
})
watch(() => store.state.editor, () => {
watch(() => currentEditor.value?.name, () => {
triggerHook('EDITOR_CURRENT_EDITOR_CHANGE', { current: currentEditor.value })
FileTabs.refreshActionBtns()
recordEditorUsageTime(currentEditor.value?.name || 'default')
Expand Down

1 comment on commit 4dfc2ad

@vercel
Copy link

@vercel vercel bot commented on 4dfc2ad Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.