Don't reparse the config on tag.collapsed change
authorJack Miller <jack@codezen.org>
Sun, 12 Jul 2015 01:46:47 +0000 (20:46 -0500)
committerJack Miller <jack@codezen.org>
Sun, 12 Jul 2015 01:46:47 +0000 (20:46 -0500)
canto_next/config.py

index c9f38ec..fe24b91 100644 (file)
@@ -119,8 +119,15 @@ class CantoConfig():
         we_care = False
         for header in [ "feeds", "tags", "defaults" ]:
             if header in changes:
-                we_care = True
-                break
+                if header == "tags":
+                    for tag in changes["tags"]:
+                        if list(changes["tags"][tag].keys()) != [ "collapsed" ]:
+                            we_care = True
+                    if we_care:
+                        break
+                else:
+                    we_care = True
+                    break
 
         if fromfile or we_care:
             self.reset()