mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 19:51:57 +08:00
import doesn't need a full tree reload
This commit is contained in:
parent
f00e1235f9
commit
c6806256fd
2 changed files with 1 additions and 6 deletions
|
@ -115,11 +115,6 @@ $("body").on("click", "a.external", function () {
|
|||
|
||||
if (utils.isElectron()) {
|
||||
require('electron').ipcRenderer.on('create-day-sub-note', async function(event, parentNoteId) {
|
||||
// this might occur when day note had to be created
|
||||
if (!await treeCache.getNote(parentNoteId)) {
|
||||
await treeService.reload();
|
||||
}
|
||||
|
||||
await treeService.activateNote(parentNoteId);
|
||||
|
||||
setTimeout(async () => {
|
||||
|
|
|
@ -98,7 +98,7 @@ async function uploadFiles(importNoteId, files, options) {
|
|||
|
||||
infoService.showMessage("Import finished successfully.");
|
||||
|
||||
await treeService.reload();
|
||||
await treeService.reloadNote(importNoteId);
|
||||
|
||||
if (noteId) {
|
||||
const node = await treeService.activateNote(noteId);
|
||||
|
|
Loading…
Reference in a new issue