mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-12-11 06:57:13 +08:00
fix(linux): Window manager throwing exception when all closed
This commit is contained in:
parent
f7b4bb4f12
commit
b12e5c512f
3 changed files with 3 additions and 3 deletions
|
|
@ -2,6 +2,7 @@ _ = require 'underscore-plus'
|
|||
fs = require 'fs-plus'
|
||||
AtomWindow = require './atom-window'
|
||||
BrowserWindow = require 'browser-window'
|
||||
app = require 'app'
|
||||
|
||||
class WindowManager
|
||||
|
||||
|
|
@ -312,10 +313,9 @@ class WindowManager
|
|||
visible = false
|
||||
visible ||= window.isVisible() for window in @_windows
|
||||
if visible is false
|
||||
@quitting = true
|
||||
global.application.quitting = true
|
||||
# Quitting the app from within a window event handler causes
|
||||
# an assertion error. Wait a moment.
|
||||
_.defer -> app.quit()
|
||||
|
||||
|
||||
module.exports = WindowManager
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue