mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Hide properties that have better controls.
The weapon laser codes can be set more easily from the weapon laser code combo box. Setting the properties explicitly here will just cause conflicts and annoying UI bugs. Hide those properties from the UI.
This commit is contained in:
@@ -42,6 +42,9 @@ class PropertyEditor(QGridLayout):
|
||||
if prop.player_only and not flight.client_count:
|
||||
continue
|
||||
|
||||
if not flight.unit_type.should_show_prop(prop.identifier):
|
||||
continue
|
||||
|
||||
try:
|
||||
widget = self.control_for_property(prop)
|
||||
except (MissingPropertyDataError, UnhandledControlTypeError):
|
||||
|
||||
Reference in New Issue
Block a user