mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 02:14:42 +01:00
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
@ -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…
Reference in New Issue
Block a user