session=self.parentSession#self.parentSession is already defined in template.data. We just want to work conveniently in init with it by creating a local var.
self._processAfterInit()
def_processAfterInit(self):
session=self.parentSession#We just want to work conveniently in init with it by creating a local var.
@ -438,6 +438,9 @@ class GuiInstrument(QtWidgets.QTreeWidgetItem):
self.mixSendDial.setEnabled(False)
self.mixSendDial.setUpdatesEnabled(False)#this is a hack to make the widget disappear. Because hiding a QTreeWidgetItem does not work.
self.parentTreeController.parentMainWindow.qtApp.processEvents()#actually show the new state, even if mass unloading (which did not work before. But loading worked!)
def_mixSendDialContextMenuEvent(self,event):
ifself._cachedInstrumentStatus["mixerEnabled"]:
mixerMuteText=QtCore.QCoreApplication.translate("InstrumentMixerLevelContextMenu","Mute/Disable Mixer-Send for {}".format(self.instrumentDict["name"]))
self.menu.addMenuEntry("menuEdit","actionLoadSamples",QtCore.QCoreApplication.translate("Menu","Load all Instrument Samples (slow!)"),api.loadAllInstrumentSamples)
self.menu.addMenuEntry("menuEdit","actionUnloadSamples",QtCore.QCoreApplication.translate("Menu","Unload all Instrument Samples (also slow.)"),api.unloadAllInstrumentSamples)