commit
4acb1f4804
2 changed files with 5 additions and 1 deletions
|
|
@ -193,6 +193,11 @@ export default class EditorApp implements App {
|
|||
(win.content.querySelector('#save') as HTMLElement).onclick = async () => {
|
||||
await window.fs.promises.writeFile(data.path, editor.value)
|
||||
}
|
||||
} else {
|
||||
await window.flow.openApp('flow.files')
|
||||
setTimeout(() => {
|
||||
win.close()
|
||||
}, 10)
|
||||
}
|
||||
|
||||
return win
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ export interface FlowWindowConfig {
|
|||
|
||||
export interface App {
|
||||
meta: {
|
||||
id: any
|
||||
name: string
|
||||
description: string
|
||||
pkg: string
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue