complete toc/highlightslist improvements

This commit is contained in:
SiriusXT 2024-09-12 19:34:23 +08:00
parent 31aa6feb0c
commit b63b603d64
2 changed files with 0 additions and 3 deletions

View File

@ -25,7 +25,6 @@ export default class ShowHighlightsListWidgetButton extends OnClickButtonWidget
}
async refreshWithNote(note) {
console.log(222)
this.toggleInt(this.noteContext.viewScope.highlightsListTemporarilyHidden);
}
async reEvaluateHighlightsListWidgetVisibilityEvent({ noteId }) {

View File

@ -25,11 +25,9 @@ export default class ShowTocWidgetButton extends OnClickButtonWidget {
}
async refreshWithNote(note) {
console.log(213)
this.toggleInt(this.noteContext.viewScope.tocTemporarilyHidden);
}
async reEvaluateTocWidgetVisibilityEvent({ noteId }) {
console.log("noteId", noteId)
if (noteId === this.noteId) {
await this.refresh();
}