Skip to content

Commit

Permalink
fixes inability to focus new tab when plugin enabled (closes shichong…
Browse files Browse the repository at this point in the history
  • Loading branch information
mjs271 committed Oct 17, 2024
1 parent 052b170 commit 8f879a8
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 @@ -32,7 +32,7 @@ export default class MyPlugin extends Plugin {
private is_file(leaf: WorkspaceLeaf)
{
// This code does not verify whether it represents all files.
return (leaf.view as FileView).allowNoFile === false;
return (leaf.view as FileView).allowNoFile === true;
}

private is_file_explorer(leaf: WorkspaceLeaf)
Expand Down

0 comments on commit 8f879a8

Please sign in to comment.