зеркало из https://github.com/mozilla/gecko-dev.git
Bug 636135 - Sync UI is left in a bad state if you disable Sync while a sync is in progress [r=mbrubeck]
This commit is contained in:
Родитель
5118797b47
Коммит
e5f69ca40d
|
@ -261,6 +261,13 @@ let WeaveGlue = {
|
|||
if (this.setupData) {
|
||||
if (this.setupData.serverURL && this.setupData.serverURL.length)
|
||||
Weave.Service.serverURL = this.setupData.serverURL;
|
||||
|
||||
// We might still be in the middle of a sync from before Sync was disabled, so
|
||||
// let's force the UI into a state that the Sync code feels comfortable
|
||||
this.observe(null, "", "");
|
||||
|
||||
// Now try to re-connect. If successful, this will reset the UI into the
|
||||
// correct state automatically.
|
||||
Weave.Service.login(Weave.Service.username, this.setupData.password, this.setupData.synckey);
|
||||
} else {
|
||||
// We can't just go back online. We need to be setup again.
|
||||
|
|
Загрузка…
Ссылка в новой задаче