Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

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

Alex Chen692ad482dcab
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go
index 86783669e..ab06f4a5d 100644
--- a/backend/onedrive/onedrive.go
+++ b/backend/onedrive/onedrive.go
@@ -201,8 +201,9 @@ func init() {
log.Fatalf("Cancelled by user")
}
- config.FileSet(name, configDriveID, finalDriveID)
- config.FileSet(name, configDriveType, rootItem.ParentReference.DriveType)
+ m.Set(configDriveID, finalDriveID)
+ m.Set(configDriveType, rootItem.ParentReference.DriveType)
+ config.SaveConfig()
},
Options: []fs.Option{{
Name: config.ConfigClientID,