fix(linux): Window manager throwing exception when all closed

This commit is contained in:
Ben Gotow 2015-05-15 11:56:44 -07:00
parent f7b4bb4f12
commit b12e5c512f
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -59,7 +59,7 @@ class EdgehillAPI
# todo: remove once the edgehill-server inbox service is called `nylas`
if token.provider is 'inbox'
atom.config.set("nylas.token", token.access_token)
atom.config.set("nylas.token", token.access_token)
if token.user_identifier?
@_setCredentials({username: token.user_identifier, password: ''})