Skip to content

Commit

Permalink
Disable on_load hook on live_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
codeheroics committed Mar 14, 2013
1 parent bc62f9c commit 6c7283d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git_gutter_events.py
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit 6c7283d

Please sign in to comment.