onedrive: fix new fields not saved when editing old config - fixes #2527

This commit is contained in:
Alex Chen 2018-09-07 00:07:16 +08:00 committed by GitHub
parent c6f1c3c7f6
commit 692ad482dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,8 +201,9 @@ func init() {
log.Fatalf("Cancelled by user") log.Fatalf("Cancelled by user")
} }
config.FileSet(name, configDriveID, finalDriveID) m.Set(configDriveID, finalDriveID)
config.FileSet(name, configDriveType, rootItem.ParentReference.DriveType) m.Set(configDriveType, rootItem.ParentReference.DriveType)
config.SaveConfig()
}, },
Options: []fs.Option{{ Options: []fs.Option{{
Name: config.ConfigClientID, Name: config.ConfigClientID,