fix: suppress local create watcher conflict

This commit is contained in:
lix-2026
2026-05-20 16:16:42 +08:00
parent 03173e2363
commit 0c532b2953
3 changed files with 123 additions and 1 deletions
@@ -1317,7 +1317,12 @@ const SIDEBAR_TREE_JS: &str = r##"
title: ''
});
var nextWorkspaceId = result.workspaceId || workspaceId;
navigateToDocument(commandDocumentId(result, ''), nextWorkspaceId, { treeView: activeSidebarTreeMode() });
var nextDocumentId = commandDocumentId(result, '');
if (nextDocumentId) {
window.__mnoteLocalFolderSelfChangeSuppressions = window.__mnoteLocalFolderSelfChangeSuppressions || new Map();
window.__mnoteLocalFolderSelfChangeSuppressions.set(nextDocumentId, Date.now() + 5000);
}
navigateToDocument(nextDocumentId, nextWorkspaceId, { treeView: activeSidebarTreeMode() });
}
function applySidebarTreeTab(mode, shell) {