Browse Source

Clear current project filename on engine stop

Fixes #1243

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC1
falkTX 4 years ago
parent
commit
b2c3a91f19
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      source/frontend/carla_host.py

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

@@ -968,9 +968,12 @@ class HostWindow(QMainWindow):

if self.fCustomStopAction == self.CUSTOM_ACTION_PROJECT_LOAD:
self.removeAllPlugins()
elif self.fPluginCount != 0:
self.fCurrentlyRemovingAllPlugins = True
self.projectLoadingStarted()
else:
self.fProjectFilename = ""
self.setProperWindowTitle()
if self.fPluginCount != 0:
self.fCurrentlyRemovingAllPlugins = True
self.projectLoadingStarted()

if self.host.is_engine_running() and not self.host.remove_all_plugins():
self.ui.text_logs.appendPlainText("Failed to remove all plugins, error was:")


Loading…
Cancel
Save