Add Open in New Window and reexecution on import change (#6379)
* Quick prototype: open in new window in file tree * WIP: refresh on imported file change * Fix up reexecution * Clean up * Add test 'Assembly gets reexecuted when imported models are updated externally' * Clean up
This commit is contained in:
@ -194,6 +194,14 @@ export const FileMachineProvider = ({
|
||||
navigate(`..${PATHS.FILE}/${encodeURIComponent(event.output.path)}`)
|
||||
}
|
||||
},
|
||||
openFileInNewWindow: ({ event }) => {
|
||||
if (event.type !== 'Open file in new window') {
|
||||
return
|
||||
}
|
||||
|
||||
commandBarActor.send({ type: 'Close' })
|
||||
window.electron.openInNewWindow(event.data.name)
|
||||
},
|
||||
},
|
||||
actors: {
|
||||
readFiles: fromPromise(async ({ input }) => {
|
||||
|
Reference in New Issue
Block a user