mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-21 07:27:51 +08:00
fix(window-launcher): Check if instance of hot window is present
This commit is contained in:
parent
9b1d223774
commit
d2d9b69863
1 changed files with 3 additions and 1 deletions
|
@ -90,7 +90,9 @@ export default class WindowLauncher {
|
||||||
// events. This is necessary for the app to quit promptly on Linux.
|
// events. This is necessary for the app to quit promptly on Linux.
|
||||||
// https://phab.nylas.com/T1282
|
// https://phab.nylas.com/T1282
|
||||||
cleanupBeforeAppQuit() {
|
cleanupBeforeAppQuit() {
|
||||||
this.hotWindow.browserWindow.destroy()
|
if (this.hotWindow != null) {
|
||||||
|
this.hotWindow.browserWindow.destroy()
|
||||||
|
}
|
||||||
this.hotWindow = null
|
this.hotWindow = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue