added "re-render note" menu item & shortcut, closes #1766

This commit is contained in:
zadam
2021-03-19 22:34:56 +01:00
parent 6a70e0ab97
commit 7e2186721f
5 changed files with 27 additions and 7 deletions

View File

@@ -328,4 +328,10 @@ export default class NoteDetailWidget extends TabAwareWidget {
async saveNoteDetailNowCommand() {
await this.spacedUpdate.updateNowIfNecessary();
}
renderActiveNoteEvent() {
if (this.tabContext.isActive()) {
this.refresh();
}
}
}