mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-29 20:04:59 +08:00
214c8b2aaa
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 |
||
---|---|---|
.. | ||
darwin.cson | ||
linux.cson | ||
win32.cson |