@@ -26,6 +26,10 @@ app.on('activate', () => {
}
})
+app.on('window-all-closed', () => {
+ app.quit()
+})
+
process.on('uncaughtException' as any, err => {
console.log(err)
application.broadcast('uncaughtException', err)
@@ -9,7 +9,7 @@ button.btn.btn-secondary.btn-maximize(
svg(version='1.1', width='10', height='10')
path(d='M 0,0 0,10 10,10 10,0 Z M 1,1 9,1 9,9 1,9 Z')
button.btn.btn-secondary.btn-close(
- (click)='hostApp.quit()',
+ (click)='hostApp.getWindow().close()',
)
path(d='M 0,0 0,0.7 4.3,5 0,9.3 0,10 0.7,10 5,5.7 9.3,10 10,10 10,9.3 5.7,5 10,0.7 10,0 9.3,0 5,4.3 0.7,0 Z')