🎨 使用退格键删除内容时状态栏实时统计信息闪烁 https://github.com/siyuan-note/insider/issues/1082

This commit is contained in:
Liang Ding 2022-10-04 12:09:05 +08:00
parent a3ec2b7753
commit e59167912e
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 0 additions and 11 deletions

View file

@ -997,8 +997,6 @@ func (tx *Transaction) begin() (err error) {
func (tx *Transaction) commit() (err error) {
for _, tree := range tx.trees {
go pushTreeStat(tree)
if err = writeJSONQueue(tree); nil != err {
return
}
@ -1009,11 +1007,6 @@ func (tx *Transaction) commit() (err error) {
return
}
func pushTreeStat(tree *parse.Tree) {
stat := treenode.StatTree(tree)
util.PushStatusBarCounter(stat)
}
func (tx *Transaction) rollback() {
tx.trees, tx.nodes = nil, nil
return

View file

@ -159,10 +159,6 @@ type BlockStatResult struct {
RefCount int `json:"refCount"`
}
func PushStatusBarCounter(stat *BlockStatResult) {
BroadcastByType("main", "statusbarCounter", 0, "", stat)
}
func ContextPushMsg(context map[string]interface{}, msg string) {
switch context[eventbus.CtxPushMsg].(int) {
case eventbus.CtxPushMsgToProgress: