notify
authorVu Nhat Minh <vunhat_minh@dwango.co.jp>
Thu, 3 Jul 2014 09:17:34 +0000 (18:17 +0900)
committerVu Nhat Minh <vunhat_minh@dwango.co.jp>
Thu, 3 Jul 2014 09:17:34 +0000 (18:17 +0900)
rainbowstream/draw.py
rainbowstream/rainbow.py

index a6f3e565a6c3f8cad63d3067a54629ceab8aa3d4..2fbe51de6336ecbf36ce2375d47ee9dd0142549d 100644 (file)
@@ -31,6 +31,13 @@ def init_cycle():
 g['cyc'] = init_cycle()
 
 
+def notify_cycle():
+    """
+    Notify from rainbow
+    """
+    g['cyc'] = init_cycle()
+
+
 def order_rainbow(s):
     """
     Print a string with ordered color with each character
index 4b6f49f00ab2d851b173e41be7dbe56e61ef3cf0..d69f6026f3c11a183d2d6f2d32ff79ae4a3625d5 100644 (file)
@@ -808,7 +808,7 @@ def theme():
                     c[nc] = new_config[nc]
             # Update db and reset colors
             db.theme_update(g['stuff'])
-            g['cyc'] = init_cycle()
+            notify_cycle()
             g['decorated_name'] = color_func(
                 c['DECORATED_NAME'])(
                 '[@' + g['original_name'] + ']: ')