mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 已选中的文件再次选中时,不会在文件树中跳转 (#6820)
This commit is contained in:
parent
44f1e43e26
commit
2e15fbf098
2 changed files with 16 additions and 1 deletions
|
|
@ -345,7 +345,7 @@ export const updatePanelByEditor = (protyle?: IProtyle, focus = true, pushBackSt
|
|||
}
|
||||
if (window.siyuan.config.fileTree.alwaysSelectOpenedFile && protyle) {
|
||||
const fileModel = getDockByType("file")?.data.file;
|
||||
if (fileModel instanceof Files) {
|
||||
if (fileModel instanceof Files && !fileModel.isSelected(protyle.path)) {
|
||||
fileModel.selectItem(protyle.notebookId, protyle.path);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue