Mercurial > code > home > repos > light9
diff bin/curvecalc @ 704:d5a9933a2222
don't reload curve files upon curve code reload
Ignore-this: 597d66003a1e45daca5470fbd57974b7
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sun, 10 Jun 2012 07:34:41 +0000 |
parents | 54a3dcba6597 |
children | ed50631cf333 |
line wrap: on
line diff
--- a/bin/curvecalc Sun Jun 10 07:22:39 2012 +0000 +++ b/bin/curvecalc Sun Jun 10 07:34:41 2012 +0000 @@ -163,13 +163,6 @@ curvesVBox, zoomControlBox, self.curveset) self.curvesetView._mtimes = mtimes - # curvesetview must already exist, since this - # makes 'add_curve' signals for all the initial - # curves - self.curveset.load(basename=os.path.join( - showconfig.curvesDir(), - showconfig.songFilenameFromURI(self.song)), - skipMusic=self.opts.skip_music) # this is scheduled after some tk shuffling, to # try to minimize the number of times we redraw # the curve at startup. If tk is very slow, it's @@ -225,6 +218,14 @@ curveset = Curveset(sliders=opts.sliders) subterms = [] + # curvesetview must already exist, since this + # makes 'add_curve' signals for all the initial + # curves. + curveset.load(basename=os.path.join( + showconfig.curvesDir(), + showconfig.songFilenameFromURI(song)), + skipMusic=opts.skip_music) + subtermPath = graphPathForSubterms(song) try: graph.parse(subtermPath, format='n3')