mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-11 19:00:04 +01:00
tidy up + change way plugins are found+listed, solves some problems, plugins use the active status to indicate disabled and now have start/stop methods (seems to work to stop+restart Sound+WJ ok, needs restart to get MidiFeedback working if its disabled? needs more tidying up and testing and fixing
This commit is contained in:
@@ -3,7 +3,7 @@ from data_centre.plugin_collection import ActionsPlugin, SequencePlugin, Display
|
||||
from plugins.frame_manager import Frame
|
||||
|
||||
class ShaderLoopRecordPlugin(ActionsPlugin,SequencePlugin,DisplayPlugin):
|
||||
disabled = False
|
||||
|
||||
MAX_CLIPS = 8
|
||||
frames = []
|
||||
|
||||
@@ -45,8 +45,8 @@ class ShaderLoopRecordPlugin(ActionsPlugin,SequencePlugin,DisplayPlugin):
|
||||
def save_presets(self):
|
||||
self.pc.update_json(self.PRESET_FILE_NAME, self.frames)
|
||||
|
||||
def quit_plugin(self):
|
||||
super().quit_plugin()
|
||||
def stop_plugin(self):
|
||||
super().stop_plugin()
|
||||
self.save_presets()
|
||||
|
||||
# DisplayPlugin methods
|
||||
|
||||
Reference in New Issue
Block a user