Skip to content

Commit

Permalink
fix: refresh control center after previewer change
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed May 6, 2024
1 parent b1bb87a commit e534308
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer/plugins/control-center.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,9 @@ export default {
},
)
})

ctx.registerHook('VIEW_PREVIEWER_CHANGE', () => {
ctx.workbench.ControlCenter.refresh()
})
}
} as Plugin

0 comments on commit e534308

Please sign in to comment.