From 62f30ef22719b489e61fdc25cf9767436e5611bc Mon Sep 17 00:00:00 2001 From: ThinLiquid Date: Wed, 25 Oct 2023 10:53:29 +0000 Subject: [PATCH 1/2] =?UTF-8?q?[=E2=9A=A1]=20Made=20editor=20app=20open=20?= =?UTF-8?q?files?= 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 From 8c2744b5d475e95094f911bc9bc4dc393a6461b3 Mon Sep 17 00:00:00 2001 From: ThinLiquid Date: Wed, 25 Oct 2023 10:56:19 +0000 Subject: [PATCH 2/2] =?UTF-8?q?[=F0=9F=94=A8]=20Follow=20ts-standard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/editor.ts | 2 +- src/types.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/apps/editor.ts b/src/apps/editor.ts index 684cad1..a54e4da 100644 --- a/src/apps/editor.ts +++ b/src/apps/editor.ts @@ -194,7 +194,7 @@ export default class EditorApp implements App { await window.fs.promises.writeFile(data.path, editor.value) } } else { - window.flow.openApp('flow.files'); + await window.flow.openApp('flow.files') setTimeout(() => { win.close() }, 10) 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