🧑‍💻 Add filetreeSortChanged and notebookSortChanged to eventbus https://github.com/siyuan-note/siyuan/issues/16383

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-11-22 21:19:47 +08:00
parent c0a3635809
commit 121e4a8b60
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 70 additions and 0 deletions

View file

@ -761,6 +761,14 @@ func ChangeBoxSort(boxIDs []string) {
boxConf.Sort = i + 1
box.SaveConf(boxConf)
}
var notebookIDs []string
for _, box := range Conf.GetOpenedBoxes() {
notebookIDs = append(notebookIDs, box.ID)
}
util.BroadcastByType("main", "notebookSortChanged", 0, "", map[string]any{
"notebookIDs": notebookIDs,
})
}
func SetBoxIcon(boxID, icon string) {