Browse Source

Hide away stuff in refresh dialog when experimental flag is off

tags/1.9.8
falkTX 7 years ago
parent
commit
74bfd2e5b3
2 changed files with 36 additions and 2 deletions
  1. +2
    -2
      resources/ui/carla_refresh.ui
  2. +34
    -0
      source/carla_database.py

+ 2
- 2
resources/ui/carla_refresh.ui View File

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>556</width>
<height>323</height>
<height>311</height>
</rect>
</property>
<property name="windowTitle">
@@ -148,7 +148,7 @@
</layout>
</item>
<item>
<widget class="Line" name="line_2">
<widget class="Line" name="sep_format">
<property name="lineWidth">
<number>0</number>
</property>


+ 34
- 0
source/carla_database.py View File

@@ -1043,6 +1043,40 @@ class PluginRefreshW(QDialog):

self.loadSettings()

# ----------------------------------------------------------------------------------------------------
# Disable bridges (experimental for now)

if not host.experimental:
self.ui.ch_native.setChecked(True)
self.ui.ch_native.setEnabled(False)
self.ui.ch_native.setVisible(False)
self.ui.ch_posix32.setChecked(False)
self.ui.ch_posix32.setEnabled(False)
self.ui.ch_posix32.setVisible(False)
self.ui.ch_posix64.setChecked(False)
self.ui.ch_posix64.setEnabled(False)
self.ui.ch_posix64.setVisible(False)
self.ui.ch_win32.setChecked(False)
self.ui.ch_win32.setEnabled(False)
self.ui.ch_win32.setVisible(False)
self.ui.ch_win64.setChecked(False)
self.ui.ch_win64.setEnabled(False)
self.ui.ch_win64.setVisible(False)
self.ui.ico_posix32.hide()
self.ui.ico_posix64.hide()
self.ui.ico_win32.hide()
self.ui.ico_win64.hide()
self.ui.label_posix32.hide()
self.ui.label_posix64.hide()
self.ui.label_win32.hide()
self.ui.label_win64.hide()
self.ui.sep_format.hide()

# ----------------------------------------------------------------------------------------------------
# Resize to minimum size, as it's very likely UI stuff was hidden

self.resize(self.minimumSize())

# --------------------------------------------------------------------------------------------------------------
# Set-up connections



Loading…
Cancel
Save