diff --git a/src/apps/editor.ts b/src/apps/editor.ts index ecac6c6..684cad1 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 { + window.flow.openApp('flow.files'); + setTimeout(() => { + win.close() + }, 10) } return win