diff bin/curvecalc @ 757:5f384443e3ed

CC reload discovers new subs Ignore-this: 893b6279f3c2f9e29be95fc1ad2c3c7c
author drewp@bigasterisk.com
date Sat, 16 Jun 2012 01:12:21 +0000
parents 20d6884478bc
children f22f925442a2
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")