Skip to content

Commit d431845

Browse files
committed
fix: add check to pulling to see if enabled in settings
1 parent 0c33147 commit d431845

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "git-livesync",
44
"publisher": "bwfiq",
55
"description": "Watch for file changes and sync them to a remote repository.",
6-
"version": "0.1.1",
6+
"version": "0.1.2",
77
"engines": {
88
"vscode": "^1.96.0"
99
},

src/gitHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class GitHandler {
3939
private startAutoPull() {
4040
// Use a recursive function for continuous pulling
4141
const pullLoop = async () => {
42-
if (utils.getAutoPull()) {
42+
if (utils.getEnabled() && utils.getAutoPull()) {
4343
await this.pull(); // Attempt to pull
4444
}
4545

0 commit comments

Comments
 (0)