diff --git a/src/apps/editor.ts b/src/apps/editor.ts index ecac6c6..a54e4da 100644 --- a/src/apps/editor.ts +++ b/src/apps/editor.ts @@ -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 diff --git a/src/types.ts b/src/types.ts index efc497f..d44775e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -32,7 +32,6 @@ export interface FlowWindowConfig { export interface App { meta: { - id: any name: string description: string pkg: string