mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-26 10:00:50 +08:00
Properly remove hotwindow reference when window is destroyed
This commit is contained in:
parent
412d690945
commit
b8f9bc8d44
1 changed files with 3 additions and 0 deletions
|
@ -122,6 +122,9 @@ export default class WindowManager {
|
|||
_didCreateNewWindow = win => {
|
||||
win.browserWindow.on('closed', () => {
|
||||
delete this._windows[win.windowKey];
|
||||
if (this.windowLauncher.hotWindow === win) {
|
||||
this.windowLauncher.hotWindow = null;
|
||||
}
|
||||
this.quitWinLinuxIfNoWindows();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue