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

Commit

Permalink
write pos automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
cutls committed Nov 4, 2023
1 parent 13378b9 commit 9b0e805
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,14 @@ function createWindow() {
if (!mainWindow) return
writePos(mainWindow)
})
mainWindow.on('resized', function () {
if (!mainWindow) return
writePos(mainWindow)
})
mainWindow.on('moved', function () {
if (!mainWindow) return
writePos(mainWindow)
})
mainWindow.on('minimize', function () {
if (!mainWindow) return
writePos(mainWindow)
Expand Down

0 comments on commit 9b0e805

Please sign in to comment.