[⚡] Made editor app open files
This commit is contained in:
parent
ae33c4ba28
commit
62f30ef227
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue