mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-18 04:58:06 +01:00
This commit is contained in:
parent
876970c1f2
commit
a3249d401a
7 changed files with 16 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue