changeset 757:5f384443e3ed

CC reload discovers new subs Ignore-this: 893b6279f3c2f9e29be95fc1ad2c3c7c
author drewp@bigasterisk.com
date Sat, 16 Jun 2012 01:12:21 +0000
parents 6be77a807389
children 668e9e37d5e3
files bin/curvecalc
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/curvecalc	Sat Jun 16 00:57:30 2012 +0000
+++ b/bin/curvecalc	Sat Jun 16 01:12:21 2012 +0000
@@ -263,7 +263,8 @@
             reactor.callLater(1, self.refreshCurveView)
 
     def onReloadSubs(self, *args): # wants to be ctrl-r  too
-        dispatcher.send('reload all subs')
+        read_all_subs(self.graph) # this will discover new subs (additive only)
+        dispatcher.send('reload all subs') # this rereads each sub from its graph file
         dispatcher.send("all curves rebuild")