Skip to content

Commit

Permalink
Fix: remove focus option from revealLeaf
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanfoudev committed Jan 12, 2025
1 parent 877bc16 commit ddfccb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default class SameTabPlugin extends Plugin {
});

// 显示视图但不聚焦
workspace.revealLeaf(leaf, { focus: false });
workspace.revealLeaf(leaf);

// 初始化内容
const currentFile = this.app.workspace.getActiveFile();
Expand Down

0 comments on commit ddfccb5

Please sign in to comment.