Skip to content

Commit

Permalink
Merge pull request #108 from denolehov/fix/plugin-lastupdated-timestamp
Browse files Browse the repository at this point in the history
Fix status bar "last update X ago"
  • Loading branch information
Vinzent03 committed Sep 5, 2021
2 parents e682aa8 + b835fc3 commit 94f19f5
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 @@ -189,6 +189,7 @@ export default class ObsidianGit extends Plugin {
}
}

this.lastUpdate = Date.now();
this.setState(PluginState.idle);
}

Expand Down Expand Up @@ -248,6 +249,7 @@ export default class ObsidianGit extends Plugin {
return;
} else {
const pushedFiles = await this.gitManager.push();
this.lastUpdate = Date.now();
this.displayMessage(`Pushed ${pushedFiles} files to remote`);
}
} else {
Expand Down

0 comments on commit 94f19f5

Please sign in to comment.