This commit is contained in:
Liang Ding 2022-08-21 23:20:22 +08:00
parent 876970c1f2
commit a3249d401a
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
7 changed files with 16 additions and 5 deletions

View file

@ -126,6 +126,10 @@ func ResetRepo() (err error) {
Conf.Save()
util.PushUpdateMsg(msgId, Conf.Language(145), 3000)
go func() {
time.Sleep(2 * time.Second)
util.ReloadUI()
}()
return
}

View file

@ -303,6 +303,13 @@ func ListCloudSyncDir() (syncDirs []*Sync, hSize string, err error) {
if nil != err {
return
}
if 1 > len(dirs) {
dirs = append(dirs, map[string]interface{}{
"name": "main",
"size": float64(0),
"updated": time.Now().Format("2006-01-02 15:04:05"),
})
}
for _, d := range dirs {
dirSize := int64(d["size"].(float64))