Skip to content

Commit

Permalink
Quit when window is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Apr 3, 2024
1 parent e259212 commit 4f5384b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function guiMain() {

// Create main window.
const mainWindow = gui.Window.create({});
mainWindow.onClose = () => gui.MessageLoop.quit();
mainWindow.setContentSize({width: 400, height: 250});
mainWindow.setContentView(createBrowser());
mainWindow.center();
Expand Down

0 comments on commit 4f5384b

Please sign in to comment.