Browse Source

Do not ask to quit carla if running under NSM show-gui server

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

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

@@ -2780,6 +2780,8 @@ class HostWindow(QMainWindow):
return False return False
if self.fCustomStopAction == self.CUSTOM_ACTION_APP_CLOSE: if self.fCustomStopAction == self.CUSTOM_ACTION_APP_CLOSE:
return False return False
if self.fWindowCloseHideGui:
return False
if self.fSavedSettings[CARLA_KEY_MAIN_CONFIRM_EXIT]: if self.fSavedSettings[CARLA_KEY_MAIN_CONFIRM_EXIT]:
return QMessageBox.question(self, self.tr("Quit"), return QMessageBox.question(self, self.tr("Quit"),
self.tr("Are you sure you want to quit Carla?"), self.tr("Are you sure you want to quit Carla?"),


Loading…
Cancel
Save