|
@@ -1746,7 +1746,7 @@ class PluginDatabaseW(QDialog): |
|
|
def loadSettings(self): |
|
|
def loadSettings(self): |
|
|
settings = QSettings() |
|
|
settings = QSettings() |
|
|
self.restoreGeometry(settings.value("PluginDatabase/Geometry", "")) |
|
|
self.restoreGeometry(settings.value("PluginDatabase/Geometry", "")) |
|
|
self.ui.tableWidget.horizontalHeader().restoreState(settings.value("PluginDatabase/TableGeometry", "")) |
|
|
|
|
|
|
|
|
self.ui.tableWidget.horizontalHeader().restoreState(settings.value("PluginDatabase/TableGeometry%s" % ("_5" if config_UseQt5 else ""), "")) |
|
|
self.ui.ch_effects.setChecked(settings.value("PluginDatabase/ShowEffects", True, type=bool)) |
|
|
self.ui.ch_effects.setChecked(settings.value("PluginDatabase/ShowEffects", True, type=bool)) |
|
|
self.ui.ch_instruments.setChecked(settings.value("PluginDatabase/ShowInstruments", True, type=bool)) |
|
|
self.ui.ch_instruments.setChecked(settings.value("PluginDatabase/ShowInstruments", True, type=bool)) |
|
|
self.ui.ch_midi.setChecked(settings.value("PluginDatabase/ShowMIDI", True, type=bool)) |
|
|
self.ui.ch_midi.setChecked(settings.value("PluginDatabase/ShowMIDI", True, type=bool)) |
|
@@ -1773,7 +1773,7 @@ class PluginDatabaseW(QDialog): |
|
|
def saveSettings(self): |
|
|
def saveSettings(self): |
|
|
settings = QSettings() |
|
|
settings = QSettings() |
|
|
settings.setValue("PluginDatabase/Geometry", self.saveGeometry()) |
|
|
settings.setValue("PluginDatabase/Geometry", self.saveGeometry()) |
|
|
settings.setValue("PluginDatabase/TableGeometry", self.ui.tableWidget.horizontalHeader().saveState()) |
|
|
|
|
|
|
|
|
settings.setValue("PluginDatabase/TableGeometryy%s" % ("_5" if config_UseQt5 else ""), self.ui.tableWidget.horizontalHeader().saveState()) |
|
|
settings.setValue("PluginDatabase/ShowFilters", (self.ui.tb_filters.arrowType() == Qt.UpArrow)) |
|
|
settings.setValue("PluginDatabase/ShowFilters", (self.ui.tb_filters.arrowType() == Qt.UpArrow)) |
|
|
settings.setValue("PluginDatabase/ShowEffects", self.ui.ch_effects.isChecked()) |
|
|
settings.setValue("PluginDatabase/ShowEffects", self.ui.ch_effects.isChecked()) |
|
|
settings.setValue("PluginDatabase/ShowInstruments", self.ui.ch_instruments.isChecked()) |
|
|
settings.setValue("PluginDatabase/ShowInstruments", self.ui.ch_instruments.isChecked()) |
|
|