Make toc/hightlightslist reopen after it's closed

This commit is contained in:
SiriusXT
2024-09-12 19:22:41 +08:00
parent 98c9e25124
commit 31aa6feb0c
6 changed files with 130 additions and 1 deletions

View File

@@ -318,6 +318,14 @@ export default class HighlightsListWidget extends RightPanelWidget {
this.noteContext.viewScope.highlightsListTemporarilyHidden = true;
await this.refresh();
this.triggerCommand('reEvaluateRightPaneVisibility');
appContext.triggerEvent("reEvaluateHighlightsListWidgetVisibility", { noteId: this.noteId });
}
async showHighlightsListWidgetEvent({ noteId }) {
if (this.noteId === noteId) {
await this.refresh();
this.triggerCommand('reEvaluateRightPaneVisibility');
}
}
async entitiesReloadedEvent({ loadResults }) {