mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 The database primary key field displays the icon of the bound doc https://github.com/siyuan-note/siyuan/issues/13378
This commit is contained in:
parent
dbdf3c15a9
commit
807f0df86f
4 changed files with 16 additions and 12 deletions
|
|
@ -269,7 +269,11 @@ func refreshDynamicRefTexts(updatedDefNodes map[string]*ast.Node, updatedTrees m
|
|||
|
||||
for _, blockValue := range blockValues.Values {
|
||||
if blockValue.Block.ID == updatedDefNode.ID {
|
||||
newContent := getNodeAvBlockText(updatedDefNode)
|
||||
newIcon, newContent := getNodeAvBlockText(updatedDefNode)
|
||||
if newIcon != blockValue.Block.Icon {
|
||||
blockValue.Block.Icon = newIcon
|
||||
changedAv = true
|
||||
}
|
||||
if newContent != blockValue.Block.Content {
|
||||
blockValue.Block.Content = newContent
|
||||
changedAv = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue