Be even lazier on NEWTAG notification
authorJack Miller <jack@codezen.org>
Thu, 30 Oct 2014 22:54:34 +0000 (17:54 -0500)
committerJack Miller <jack@codezen.org>
Thu, 30 Oct 2014 22:54:34 +0000 (17:54 -0500)
We already didn't propagate new tag calls, but now don't refresh the
config without real newtags either.

canto_curses/config.py

index 8303b50..f16c46c 100644 (file)
@@ -842,6 +842,11 @@ class CantoCursesConfig(SubThread):
                 self.vars["strtags"].append(tag)
                 newtags.append(tag)
 
+        # If there aren't really any tags we didn't know about, no bail.
+
+        if not newtags:
+            return
+
         self.set_conf(c)
 
         for tag in newtags:
@@ -850,7 +855,6 @@ class CantoCursesConfig(SubThread):
 
         self.eval_tags()
 
-
     @write_lock(config_lock)
     def prot_deltags(self, tags):