mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🧑💻 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:
parent
c0a3635809
commit
121e4a8b60
2 changed files with 70 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue