Browse Source

Fix remove-all action logic (no animation for now)

tags/1.9.6
falkTX 10 years ago
parent
commit
bc4b0a2b38
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      source/carla_host.py

+ 7
- 4
source/carla_host.py View File

@@ -692,20 +692,23 @@ class HostWindow(QMainWindow):
if self.fPluginCount == 0:
return

if not self.host.isPlugin:
# FIXME - this is not working
# removing a plugin causes flicker, the rack-list becomes empty for some time
# this breaks the remove-all animation, so don't bother using it
if False and not self.host.isPlugin:
self.projectLoadingStarted()

app = QApplication.instance()
app.processEvents()

for i in range(self.fPluginCount):
self.host.remove_plugin(self.fPluginCount-i-1)
for i in reversed(range(self.fPluginCount)):
self.host.remove_plugin(i)
app.processEvents()

self.projectLoadingFinished()

self.host.remove_all_plugins()
self.removeAllPlugins()
self.host.remove_all_plugins()

# --------------------------------------------------------------------------------------------------------
# Plugins (macros)


Loading…
Cancel
Save