Browse Source

Keep add-plugin dialog in memory, so recurring shows are faster

tags/v2.1-rc1
falkTX 6 years ago
parent
commit
f1b3552167
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      source/frontend/carla_host.py

+ 6
- 1
source/frontend/carla_host.py View File

@@ -141,6 +141,8 @@ class HostWindow(QMainWindow):

self.fPluginCount = 0
self.fPluginList = []

self.fPluginDatabaseDialog = None
self.fFavoritePlugins = []

self.fProjectFilename = ""
@@ -1068,7 +1070,10 @@ class HostWindow(QMainWindow):
# Plugins (menu actions)

def showAddPluginDialog(self):
dialog = PluginDatabaseW(self.fParentOrSelf, self.host)
if self.fPluginDatabaseDialog is None:
self.fPluginDatabaseDialog = PluginDatabaseW(self.fParentOrSelf, self.host)
dialog = self.fPluginDatabaseDialog

ret = dialog.exec_()

if dialog.fFavoritePluginsChanged:


Loading…
Cancel
Save