mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
reduce flickering of import by disabling entityChanges notification of frontend
This commit is contained in:
@@ -42,6 +42,9 @@ async function importToBranch(req) {
|
||||
// and may produce unintended consequences
|
||||
cls.disableEntityEvents();
|
||||
|
||||
// eliminate flickering during import
|
||||
cls.ignoreEntityChanges();
|
||||
|
||||
let note; // typically root of the import - client can show it after finishing the import
|
||||
|
||||
const taskContext = TaskContext.getInstance(taskId, 'import', options);
|
||||
|
||||
Reference in New Issue
Block a user