From 62f30ef22719b489e61fdc25cf9767436e5611bc Mon Sep 17 00:00:00 2001 From: ThinLiquid Date: Wed, 25 Oct 2023 10:53:29 +0000 Subject: [PATCH] =?UTF-8?q?[=E2=9A=A1]=20Made=20editor=20app=20open=20file?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/editor.ts | 5 +++++ 1 file changed, 5 insertions(+) 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