Skip to content

Commit

Permalink
fix: don't refresh views if git client is not ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Sep 18, 2024
1 parent 42bf536 commit 7887c7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export default class ObsidianGit extends Plugin {
}

async refresh() {
if (!this.gitReady) return;

const gitView = this.app.workspace.getLeavesOfType(
SOURCE_CONTROL_VIEW_CONFIG.type
);
Expand Down

0 comments on commit 7887c7f

Please sign in to comment.