Explorar o código

:art: The line number field no longer appears in the database attribute panel https://github.com/siyuan-note/siyuan/issues/11319

Daniel hai 1 ano
pai
achega
c6dca1fe0c
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      kernel/model/attribute_view.go

+ 6 - 0
kernel/model/attribute_view.go

@@ -379,6 +379,12 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
 
 		var keyValues []*av.KeyValues
 		for _, kv := range attrView.KeyValues {
+			if av.KeyTypeLineNumber == kv.Key.Type {
+				// 属性面板中不显示行号字段
+				// The line number field no longer appears in the database attribute panel https://github.com/siyuan-note/siyuan/issues/11319
+				continue
+			}
+
 			kValues := &av.KeyValues{Key: kv.Key}
 			for _, v := range kv.Values {
 				if v.BlockID == blockID {