self.start(additionalData)#This shows the GUI, or not, depends on the NSM gui save setting. We need to call that after the menu, otherwise the about dialog will block and then we get new menu entries, which looks strange.
api.callbacks.rescanSampleDir.append(self.react_rescanSampleDir)#This only happens on actual, manually instructed rescanning through the api. We instruct this through our Rescan-Dialog.
ifsettings.contains("instrumentTreeIsNested"):#Only call after the instruments got parsed
@ -166,13 +173,11 @@ class MainWindow(TemplateMainWindow):
self.menu.addMenuEntry("menuView","actionExpandAll",QtCore.QCoreApplication.translate("Menu","Expand all Libraries"),lambda:self.instrumentTreeController.setAllExpanded(True))
self.menu.addMenuEntry("menuView","actionCollapseAll",QtCore.QCoreApplication.translate("Menu","Collapse all Libraries"),lambda:self.instrumentTreeController.setAllExpanded(False))
self.menu.addMenuEntry("menuView","actionFlatNested",QtCore.QCoreApplication.translate("Menu","Nested Instrument List"),self.instrumentTreeController.toggleNestedFlat,checkable=True,startChecked=nested)#function receives check state as automatic parameter
self.menu.addMenuEntry("menuView","actionPianoRollVisible",QtCore.QCoreApplication.translate("Menu","Piano Roll"),self.pianoRollToggleVisibleAndRemember,shortcut="Ctrl+R",checkable=True,startChecked=nested)#function receives check state as automatic parameter
self.menu.addMenuEntry("menuView","actionPianoVisible",QtCore.QCoreApplication.translate("Menu","Piano"),self.pianoToggleVisibleAndRemember,shortcut="Ctrl+P",checkable=True,startChecked=nested)#function receives check state as automatic parameter
self.menu.addMenuEntry("menuView","actionFlatNested",QtCore.QCoreApplication.translate("Menu","Nested Instrument List"),self.toggleNestedFlatAndRemember,checkable=True,startChecked=True)#function receives check state as automatic parameter
self.menu.addMenuEntry("menuView","actionPianoRollVisible",QtCore.QCoreApplication.translate("Menu","Piano Roll"),self.pianoRollToggleVisibleAndRemember,shortcut="Ctrl+R",checkable=True,startChecked=True)#function receives check state as automatic parameter
self.menu.addMenuEntry("menuView","actionPianoVisible",QtCore.QCoreApplication.translate("Menu","Piano"),self.pianoToggleVisibleAndRemember,shortcut="Ctrl+P",checkable=True,startChecked=True)#function receives check state as automatic parameter