🎨 改进桌面端底部状态栏通知 https://github.com/siyuan-note/siyuan/issues/5294

This commit is contained in:
Liang Ding 2022-06-26 20:14:27 +08:00
parent 717f3b356c
commit 27bdcb6672
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 15 additions and 7 deletions

View file

@ -18,6 +18,7 @@ package util
import (
"sync"
"time"
"github.com/88250/gulu"
"github.com/88250/melody"
@ -145,6 +146,7 @@ func PushErrMsg(msg string, timeout int) (msgId string) {
}
func PushStatusBar(msg string) {
msg += " (" + time.Now().Format("2006-01-02 15:04:05") + ")"
BroadcastByType("main", "statusbar", 0, msg, nil)
}