Browse files

Disable on_load hook on live_mode

  • Loading branch information...
1 parent bc62f9c commit 6c7283d876ea6366a03545589a87c44bb2c54970 @codeheroics codeheroics committed Mar 14, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 git_gutter_events.py
View
4 git_gutter_events.py
@@ -26,7 +26,7 @@ def on_post_save(self, view):
ViewCollection.add(view)
def on_load(self, view):
- if not self.non_blocking:
+ if not self.non_blocking and not self.live_mode:
ViewCollection.add(view)
def on_activated(self, view):
@@ -51,7 +51,7 @@ def on_post_save_async(self, view):
ViewCollection.add(view)
def on_load_async(self, view):
- if self.non_blocking:
+ if self.non_blocking and not self.live_mode:
ViewCollection.add(view)
def on_activated_async(self, view):

0 comments on commit 6c7283d

Please sign in to comment.