Skip to content

Commit 0a44fe0

Browse files
committed
Merge commit 'bed5346e508e51a0df717c8a05b1de6d41c41ec8' into release
2 parents 3b389f7 + bed5346 commit 0a44fe0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"devDependencies": {
4242
"@electron/notarize": "^2.1.0",
4343
"dotenv": "^16.3.1",
44-
"electron": "^25.3.0",
44+
"electron": "^25.3.1",
4545
"electron-builder": "^24.5.2",
4646
"sumchecker": "^3.0.1"
4747
}

src/main/electron.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ function createWindow (opt = {})
179179

180180
mainWindow.on('close', (event) =>
181181
{
182-
const win = event.sender
183-
const index = windowsRegistry.indexOf(win)
182+
const win = mainWindow;
184183

185-
if (__DEV__)
184+
if (__DEV__)
186185
{
186+
const index = windowsRegistry.indexOf(win)
187187
console.log('Window on close', index)
188188
}
189189

@@ -244,9 +244,9 @@ function createWindow (opt = {})
244244
})
245245

246246
// Emitted when the window is closed.
247-
mainWindow.on('closed', (event/*:WindowEvent*/) =>
247+
mainWindow.on('closed', () =>
248248
{
249-
const index = windowsRegistry.indexOf(event.sender)
249+
const index = windowsRegistry.indexOf(mainWindow)
250250

251251
if (__DEV__)
252252
{

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ electron-updater@^6.1.1:
805805
semver "^7.3.8"
806806
typed-emitter "^2.1.0"
807807

808-
electron@^25.3.0:
808+
electron@^25.3.1:
809809
version "25.3.1"
810810
resolved "https://registry.yarnpkg.com/electron/-/electron-25.3.1.tgz#898cbb5e54d17ad0014123a10f5febc17638c6a9"
811811
integrity sha512-t0QXXqgf0/P0OJ9LU3qpcBMK+wL0FRwTQfooBaaG08v5hywPzc1yplfb3l4tS1xC0Ttw8IBaKLBeEoRgxBRHjg==

0 commit comments

Comments
 (0)