Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
unmaximize
Browse files Browse the repository at this point in the history
  • Loading branch information
cutls committed Nov 4, 2023
1 parent 0e25286 commit 13378b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ function createWindow() {
writePos(mainWindow)
fs.writeFileSync(max_info_path, JSON.stringify(mainWindow.getBounds()))
})
mainWindow.on('unmaximize', function () {
if (!mainWindow) return
writePos(mainWindow)
})
mainWindow.on('minimize', function () {
if (!mainWindow) return
writePos(mainWindow)
Expand Down

0 comments on commit 13378b9

Please sign in to comment.