Browse Source

Fix plugin paths reset action

tags/1.9.4
falkTX 11 years ago
parent
commit
d5a8e67420
2 changed files with 21 additions and 28 deletions
  1. +0
    -14
      resources/ui/carla.ui
  2. +21
    -14
      source/carla.py

+ 0
- 14
resources/ui/carla.ui View File

@@ -539,20 +539,6 @@
<string>F6</string>
</property>
</action>
<action name="act_settings_show_transport">
<property name="checkable">
<bool>true</bool>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Show Transport bar</string>
</property>
<property name="iconText">
<string>Show Transport bar</string>
</property>
</action>
<action name="act_canvas_arrange">
<property name="icon">
<iconset resource="../resources.qrc">


+ 21
- 14
source/carla.py View File

@@ -466,52 +466,59 @@ class CarlaSettingsW(QDialog):

elif self.ui.lw_page.currentRow() == TAB_INDEX_CARLA_PATHS:
if self.ui.tw_paths.currentIndex() == 0:
Carla.LADSPA_PATH.sort()
paths = DEFAULT_LADSPA_PATH.split(splitter)
paths.sort()
self.ui.lw_ladspa.clear()

for ladspa in Carla.LADSPA_PATH:
for ladspa in Carla.paths:
self.ui.lw_ladspa.addItem(ladspa)

elif self.ui.tw_paths.currentIndex() == 1:
Carla.DSSI_PATH.sort()
paths = DEFAULT_DSSI_PATH.split(splitter)
paths.sort()
self.ui.lw_dssi.clear()

for dssi in Carla.DSSI_PATH:
for dssi in paths:
self.ui.lw_dssi.addItem(dssi)

elif self.ui.tw_paths.currentIndex() == 2:
Carla.LV2_PATH.sort()
paths = DEFAULT_LV2_PATH.split(splitter)
paths.sort()
self.ui.lw_lv2.clear()

for lv2 in Carla.LV2_PATH:
for lv2 in paths:
self.ui.lw_lv2.addItem(lv2)

elif self.ui.tw_paths.currentIndex() == 3:
Carla.VST_PATH.sort()
paths = DEFAULT_VST_PATH.split(splitter)
paths.sort()
self.ui.lw_vst.clear()

for vst in Carla.VST_PATH:
for vst in paths:
self.ui.lw_vst.addItem(vst)

elif self.ui.tw_paths.currentIndex() == 4:
Carla.GIG_PATH.sort()
paths = DEFAULT_GIG_PATH.split(splitter)
paths.sort()
self.ui.lw_gig.clear()

for gig in Carla.GIG_PATH:
for gig in paths:
self.ui.lw_gig.addItem(gig)

elif self.ui.tw_paths.currentIndex() == 5:
Carla.SF2_PATH.sort()
paths = DEFAULT_SF2_PATH.split(splitter)
paths.sort()
self.ui.lw_sf2.clear()

for sf2 in Carla.SF2_PATH:
for sf2 in paths:
self.ui.lw_sf2.addItem(sf2)

elif self.ui.tw_paths.currentIndex() == 6:
Carla.SFZ_PATH.sort()
paths = DEFAULT_SFZ_PATH.split(splitter)
paths.sort()
self.ui.lw_sfz.clear()

for sfz in Carla.SFZ_PATH:
for sfz in paths:
self.ui.lw_sfz.addItem(sfz)

@pyqtSlot()


Loading…
Cancel
Save