forked from TrueCloudLab/rclone
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:
parent
e53892f53b
commit
02ffd43572
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue