mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 10:11:25 +08:00
fix(add-account): Don't check for tokens from secondary windows
This commit is contained in:
parent
4faf2b1de2
commit
0af18c9f2e
2 changed files with 6 additions and 4 deletions
|
@ -112,7 +112,8 @@ class AtomWindow
|
|||
setLoadSettings: (loadSettings) ->
|
||||
@browserWindow.loadSettings = loadSettings
|
||||
@browserWindow.loadSettingsChangedSinceGetURL = true
|
||||
@browserWindow.webContents.send('load-settings-changed', loadSettings) if @loaded
|
||||
if @loaded
|
||||
@browserWindow.webContents.send('load-settings-changed', loadSettings)
|
||||
|
||||
getUrl: (loadSettingsObj) ->
|
||||
# Ignore the windowState when passing loadSettings via URL, since it could
|
||||
|
|
|
@ -14,9 +14,10 @@ class EdgehillAPI
|
|||
|
||||
# Always ask Edgehill Server for our tokens at launch. This way accounts
|
||||
# added elsewhere will appear, and we'll also handle the 0.2.5=>0.3.0 upgrade.
|
||||
existing = @_getCredentials()
|
||||
if existing and existing.username
|
||||
@setUserIdentifierAndRetrieveTokens(existing.username)
|
||||
if atom.isMainWindow()
|
||||
existing = @_getCredentials()
|
||||
if existing and existing.username
|
||||
@setUserIdentifierAndRetrieveTokens(existing.username)
|
||||
|
||||
@
|
||||
|
||||
|
|
Loading…
Reference in a new issue