From 02ffd435724e344692aa4a3a36f9a0147fba888f Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 23 Nov 2017 14:01:32 +0000 Subject: [PATCH] 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. --- fs/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/config.go b/fs/config.go index 2b3e83f42..16968672c 100644 --- a/fs/config.go +++ b/fs/config.go @@ -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