"move to new window" respects note hoisting of original tab

This commit is contained in:
zadam
2021-02-07 21:27:09 +01:00
parent cd5be59413
commit bed7bdfd00
9 changed files with 38 additions and 14 deletions

View File

@@ -145,6 +145,10 @@ class TabContext extends Component {
}
async setHoistedNoteId(noteIdToHoist) {
if (this.notePathArray && !this.notePathArray.includes(noteIdToHoist)) {
await this.setNote(noteIdToHoist);
}
this.hoistedNoteId = noteIdToHoist;
await this.triggerEvent('hoistedNoteChanged', {