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 a6f3e56..2fbe51d 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 4b6f49f..d69f602 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'] + ']: ')