Fix double-resets
authorJack Miller <jack@codezen.org>
Mon, 27 Jul 2015 20:50:04 +0000 (15:50 -0500)
committerJack Miller <jack@codezen.org>
Mon, 27 Jul 2015 20:51:18 +0000 (15:51 -0500)
tag_updater.reset() is now called from update(), so don't manually do a
reset before.

canto_curses/gui.py
canto_curses/guibase.py

index 9e6d97c..460cbb0 100644 (file)
@@ -165,9 +165,8 @@ class CantoCursesGui(CommandHandler):
         self.release_gui()
 
     def cmd_refresh(self):
-        if tag_updater.reset():
-            # Will trigger a hook on completion that will cause refresh
-            tag_updater.update()
+        # Will trigger a hook on completion that will cause refresh
+        tag_updater.update()
 
     def cmd_update(self):
         self.force_sync()
index 779d6a1..11eb2c6 100644 (file)
@@ -274,7 +274,6 @@ Common options:
 
     def cmd_transform(self, transform):
         tag_updater.transform("user", transform)
-        tag_updater.reset()
         tag_updater.update()
 
     def type_unescape_command(self):