diff options
author | James <james@mackie.fourth> | 2007-03-19 01:33:51 (GMT) |
---|---|---|
committer | James <james@mackie.fourth> | 2007-03-19 01:33:51 (GMT) |
commit | 022ebbf1c6a7f11cf8f7a851cdd4b0834d97d855 (patch) | |
tree | 4f69cb4c6b81eb21eebdf115c35701704c893a67 /Edit | |
parent | 35d3fd6217ab3d981d9d4f6aadaa7e089b01a05c (diff) |
clear plugin db on [de]activate
Diffstat (limited to 'Edit')
-rw-r--r-- | Edit/MainWindow.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py index 897f440..645f982 100644 --- a/Edit/MainWindow.py +++ b/Edit/MainWindow.py @@ -511,6 +511,8 @@ class MainWindow( SubActivity ): def onActivate( self, arg ): SubActivity.onActivate( self,arg ) # whatever needs to be done on initialization + self.csnd.loopPause() + self.csnd.loopClear() for n in self.noteDB.getNotes( ): self.csnd.loopPlay(n, 0) #adds all notes to c client in inactive state @@ -518,6 +520,7 @@ class MainWindow( SubActivity ): SubActivity.onDeactivate( self ) # clean up things like popups etc self.releaseInstrumentPanel() + self.csnd.loopPause() self.csnd.loopClear() def setInstrumentPanel( self, instrumentPanel ): |