fs: Save the config before asking for a token - fixes #1220

Before this if the client_id/client_secret was edited it would
disappear when asking for the new token.

This means the post config is done after the user has confirmed the
config is OK which can't be helped.
This commit is contained in:
Nick Craig-Wood 2017-11-23 14:01:32 +00:00
parent e53892f53b
commit 02ffd43572

View File

@ -1150,12 +1150,12 @@ func EditRemote(fs *RegInfo, name string) {
configData.SetValue(name, key, newValue)
}
}
RemoteConfig(name)
if OkRemote(name) {
break
}
}
SaveConfig()
RemoteConfig(name)
}
// DeleteRemote gets the user to delete a remote