mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
"move to new window" respects note hoisting of original tab
This commit is contained in:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user