mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 13:44:41 +08:00
e8f7f76080
Summary: Resolves T1200 and probably others. This diff moves all the window management / hot loading into a new class called the WindowManager and also changes the way the app transitions between onboarding and main window. When you log out, the main window clears config and clearing the config causes the window manager to close the main window and open the login window. When it detects a token again, it opens the main window. This means you can't: - Open the main window from the login window - Open mailto: links and accidentally see the main window or a composer, since the draft store isn't running anywhere. - Don't need to worry about properly resetting thigns when namespaces change, since the window is now actually re-created from scratch with the new auth token. Be a little more defensive about namespace checks in draft-store Move window code to window-manager Rename AtomApplication to just `Application` Specs fix Test Plan: Run tests, would be good to have more for this. Reviewers: evan Reviewed By: evan Maniphest Tasks: T1200 Differential Revision: https://review.inboxapp.com/D1501
17 lines
620 B
CoffeeScript
17 lines
620 B
CoffeeScript
{Point, Range} = require 'text-buffer'
|
|
{Emitter, Disposable, CompositeDisposable} = require 'event-kit'
|
|
{deprecate} = require 'grim'
|
|
|
|
module.exports =
|
|
BufferedNodeProcess: require '../src/buffered-node-process'
|
|
BufferedProcess: require '../src/buffered-process'
|
|
Point: Point
|
|
Range: Range
|
|
Emitter: Emitter
|
|
Disposable: Disposable
|
|
CompositeDisposable: CompositeDisposable
|
|
|
|
# The following classes can't be used from a Task handler and should therefore
|
|
# only be exported when not running as a child node process
|
|
unless process.env.ATOM_SHELL_INTERNAL_RUN_AS_NODE
|
|
module.exports.Task = require '../src/task'
|