Browse Source

Remove favorite plugins from list when they fail to load

tags/v2.3.1
falkTX 3 years ago
parent
commit
9af9c405bf
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      source/frontend/carla_host.py

+ 11
- 0
source/frontend/carla_host.py View File

@@ -1225,6 +1225,17 @@ class HostWindow(QMainWindow):

if not self.host.add_plugin(plugin['build'], plugin['type'], plugin['filename'], None,
plugin['label'], plugin['uniqueId'], None, PLUGIN_OPTIONS_NULL):
# remove plugin from favorites
try:
self.fFavoritePlugins.remove(plugin)
except ValueError:
pass
else:
settingsDBf = QSafeSettings("falkTX", "CarlaDatabase2")
settingsDBf.setValue("PluginDatabase/Favorites", self.fFavoritePlugins)
settingsDBf.sync()
del settingsDBf

CustomMessageBox(self,
QMessageBox.Critical,
self.tr("Error"),


Loading…
Cancel
Save