mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
20d3cc97a8
commit
20a3e9802b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user