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 () => {
|
(win.content.querySelector('#save') as HTMLElement).onclick = async () => {
|
||||||
await window.fs.promises.writeFile(data.path, editor.value)
|
await window.fs.promises.writeFile(data.path, editor.value)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
await window.flow.openApp('flow.files')
|
||||||
|
setTimeout(() => {
|
||||||
|
win.close()
|
||||||
|
}, 10)
|
||||||
}
|
}
|
||||||
|
|
||||||
return win
|
return win
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ export interface FlowWindowConfig {
|
||||||
|
|
||||||
export interface App {
|
export interface App {
|
||||||
meta: {
|
meta: {
|
||||||
id: any
|
|
||||||
name: string
|
name: string
|
||||||
description: string
|
description: string
|
||||||
pkg: string
|
pkg: string
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue