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:
Dan Albert
2023-07-22 17:23:43 -07:00
committed by Raffson
parent 51f578b9e3
commit dc22e0a577
4 changed files with 26 additions and 0 deletions

View File

@@ -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):