Skip to content

Commit 287eb85

Browse files
committed
1 parent 7dcec6c commit 287eb85

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## 0.3.4 2024-02
44

5+
* [Add plugin event bus `click-flashcard-action`](https://github.com/siyuan-note/siyuan/issues/10318)
6+
57
## 0.3.3 2024-01-24
68

79
* Update dock icon class

src/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,18 @@ export default class PluginSample extends Plugin {
534534
click: () => {
535535
this.eventBus.off("click-editortitleicon", this.eventBusLog);
536536
}
537+
}, {
538+
icon: "iconSelect",
539+
label: "On click-flashcard-action",
540+
click: () => {
541+
this.eventBus.on("click-flashcard-action", this.eventBusLog);
542+
}
543+
}, {
544+
icon: "iconClose",
545+
label: "Off click-flashcard-action",
546+
click: () => {
547+
this.eventBus.off("click-flashcard-action", this.eventBusLog);
548+
}
537549
}, {
538550
icon: "iconSelect",
539551
label: "On open-noneditableblock",

0 commit comments

Comments
 (0)