Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
fix: use better API
Browse files Browse the repository at this point in the history
Support for workspace where only pinned panes are.

Closes #34 and possible #33.
  • Loading branch information
kometenstaub committed Jul 3, 2022
1 parent 01bf997 commit c0910f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default class TopBarButtonsPlugin extends Plugin {
}));
this.registerEvent(
this.app.workspace.on('file-open', () => {
const activeLeaf = app.workspace.getLeaf(false);
const activeLeaf = app.workspace.activeLeaf;

// if that is used, the buttons don't stay when navigating to a non-markdown pane (excalidraw)
//const view =
Expand Down

0 comments on commit c0910f9

Please sign in to comment.