🎨 Remove Add and Remove buttons for S3/WebDAV cloud sync directory settings https://github.com/siyuan-note/siyuan/issues/13682

This commit is contained in:
Daniel 2025-01-01 12:00:02 +08:00
parent 9db8b0bfab
commit 47e6e8b74b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 8 additions and 4 deletions

View file

@ -612,6 +612,10 @@ func ListCloudSyncDir() (syncDirs []*Sync, hSize string, err error) {
if conf.ProviderSiYuan == Conf.Sync.Provider {
hSize = humanize.BytesCustomCeil(uint64(size), 2)
}
if conf.ProviderS3 == Conf.Sync.Provider {
Conf.Sync.CloudName = syncDirs[0].CloudName
Conf.Save()
}
return
}