refactor: de-couple linking controller from active item (#2108)
This commit is contained in:
@@ -245,8 +245,6 @@ export class ItemListController extends AbstractViewController implements Intern
|
||||
|
||||
await this.application.itemControllerGroup.createItemController({ note })
|
||||
|
||||
this.linkingController.reloadAllLinks()
|
||||
|
||||
await this.publishCrossControllerEventSync(CrossControllerEvent.ActiveEditorChanged)
|
||||
}
|
||||
|
||||
@@ -262,8 +260,6 @@ export class ItemListController extends AbstractViewController implements Intern
|
||||
}
|
||||
|
||||
await this.application.itemControllerGroup.createItemController({ file })
|
||||
|
||||
this.linkingController.reloadAllLinks()
|
||||
}
|
||||
|
||||
setCompletedFullSync = (completed: boolean) => {
|
||||
@@ -659,8 +655,6 @@ export class ItemListController extends AbstractViewController implements Intern
|
||||
|
||||
const controller = await this.createNewNoteController(useTitle, createdAt, autofocusBehavior)
|
||||
|
||||
this.linkingController.reloadAllLinks()
|
||||
|
||||
this.selectionController.scrollToItem(controller.item)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user