Permalink
Browse files

Disabling autocommits fix

  • Loading branch information...
1 parent bdecab9 commit 22963de77faef97ffaabe98bd5ae9926ac415223 Tomek Wytrębowicz committed Sep 12, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 vlt.py
  2. BIN vlt.pyc
View
3 vlt.py
@@ -68,6 +68,9 @@ def on_post_save(self, view):
success, message = Add(folder_name, filename)
LogResults(success, message)
else:
+ if(not sublime.load_settings('vlt.sublime-settings').get('vlt_auto_commit')):
+ WarnUser("Auto Commit disabled")
+ return
folder_name, filename = os.path.split(view.file_name())
success, message = Commit(folder_name, filename)
LogResults(success, message)
View
BIN vlt.pyc
Binary file not shown.

0 comments on commit 22963de

Please sign in to comment.