Browse Source

Add UI option for load-lib-local, default true

tags/1.9.8
falkTX 7 years ago
parent
commit
c57e81696f
2 changed files with 30 additions and 0 deletions
  1. +16
    -0
      resources/ui/carla_settings.ui
  2. +14
    -0
      source/carla_settings.py

+ 16
- 0
resources/ui/carla_settings.ui View File

@@ -395,6 +395,22 @@
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="group_main_advanced">
<property name="title">
<string>Advanced</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_10">
<item>
<widget class="QCheckBox" name="ch_main_load_lib_local">
<property name="text">
<string>Load Carla backend in local namespace (RECOMMENDED)</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">


+ 14
- 0
source/carla_settings.py View File

@@ -272,6 +272,9 @@ class CarlaSettingsW(QDialog):
if self.host.processMode == ENGINE_PROCESS_MODE_CONTINUOUS_RACK:
self.ui.ch_engine_force_stereo.setEnabled(False)

if host.isControl or host.isPlugin:
self.ui.group_main_advanced.hide()

# FIXME, pipes on win32 not working
if WINDOWS:
self.ui.ch_engine_prefer_ui_bridges.setChecked(False)
@@ -359,6 +362,11 @@ class CarlaSettingsW(QDialog):

settings = QSettings("falkTX", "Carla2")

# ----------------------------------------------------------------------------------------------------
# Main

self.ui.ch_main_load_lib_local.setChecked(settings.value(CARLA_KEY_MAIN_LOAD_LIB_LOCAL, CARLA_DEFAULT_MAIN_LOAD_LIB_LOCAL, type=bool))

# ----------------------------------------------------------------------------------------------------
# Engine

@@ -491,6 +499,11 @@ class CarlaSettingsW(QDialog):

settings = QSettings("falkTX", "Carla2")

# ----------------------------------------------------------------------------------------------------
# Main

settings.setValue(CARLA_KEY_MAIN_LOAD_LIB_LOCAL, self.ui.ch_main_load_lib_local.isChecked())

# ----------------------------------------------------------------------------------------------------
# Engine

@@ -599,6 +612,7 @@ class CarlaSettingsW(QDialog):
self.ui.ch_main_use_custom_skins.setChecked(CARLA_DEFAULT_MAIN_USE_CUSTOM_SKINS)
self.ui.ch_main_manage_uis.setChecked(CARLA_DEFAULT_MAIN_MANAGE_UIS)
self.ui.ch_main_show_logs.setChecked(CARLA_DEFAULT_MAIN_SHOW_LOGS)
self.ui.ch_main_load_lib_local.setChecked(CARLA_DEFAULT_MAIN_LOAD_LIB_LOCAL)

# ----------------------------------------------------------------------------------------------------
# Canvas


Loading…
Cancel
Save