Skip to content

Commit

Permalink
issue devhubapp#272 Adjust window close event handling to ensure prop…
Browse files Browse the repository at this point in the history
…er closure on Windows OS
  • Loading branch information
MannCode committed Feb 26, 2024
1 parent 6e31725 commit b98badf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/desktop/src/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export function createWindow() {
e.preventDefault()
win.hide()
return
} else {
// For other platforms, allow the window to be closed
mainWindow = undefined // Set the reference to mainWindow to undefined
win.destroy() // Quit the application
}
})

Expand Down

0 comments on commit b98badf

Please sign in to comment.