Properties: Hide Net Class from GUI

It is confusing users who want to change the netclass of a net.
This commit is contained in:
Jon Evans 2023-03-26 19:44:10 -04:00
parent c35cefe1d5
commit 3f42e6b702
1 changed files with 4 additions and 0 deletions

View File

@ -179,11 +179,15 @@ static struct BOARD_CONNECTED_ITEM_DESC
/**
* This property should just be an alias for the one below, it only exists so that we
* maintain compatibility with both `NetClass` and `Net_Class` in custom rules.
* It has the name we would show in the GUI if we wanted to show this in the GUI, but we
* don't at the moment because there is no way to edit the netclass of a net from a selected
* connected item, and showing it makes users think they can change it.
*/
propMgr.AddProperty( new PROPERTY<BOARD_CONNECTED_ITEM, wxString>( _HKI( "Net Class" ),
NO_SETTER( BOARD_CONNECTED_ITEM, wxString ),
&BOARD_CONNECTED_ITEM::GetNetClassName ) )
.SetIsHiddenFromRulesEditor()
.SetIsHiddenFromPropertiesManager()
.SetIsHiddenFromLibraryEditors();
// Compatibility alias for DRC engine