Skip to content

Commit

Permalink
Properties: NetName and NetClass should have a space + don't translat…
Browse files Browse the repository at this point in the history
…e "Net"
  • Loading branch information
Qbort authored and craftyjon committed Aug 23, 2022
1 parent bfdb39f commit fe7e665
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pcbnew/board_connected_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ static struct BOARD_CONNECTED_ITEM_DESC

propMgr.AddProperty( new PROPERTY_ENUM<BOARD_CONNECTED_ITEM, int>( _HKI( "Net" ),
&BOARD_CONNECTED_ITEM::SetNetCode, &BOARD_CONNECTED_ITEM::GetNetCode ) );
propMgr.AddProperty( new PROPERTY<BOARD_CONNECTED_ITEM, wxString>( _HKI( "NetName" ),
propMgr.AddProperty( new PROPERTY<BOARD_CONNECTED_ITEM, wxString>( _HKI( "Net Name" ),
NO_SETTER( BOARD_CONNECTED_ITEM, wxString ), &BOARD_CONNECTED_ITEM::GetNetname ) );
propMgr.AddProperty( new PROPERTY<BOARD_CONNECTED_ITEM, wxString>( _HKI( "NetClass" ),
propMgr.AddProperty( new PROPERTY<BOARD_CONNECTED_ITEM, wxString>( _HKI( "Net Class" ),
NO_SETTER( BOARD_CONNECTED_ITEM, wxString ), &BOARD_CONNECTED_ITEM::GetNetClassName ) );
}
} _BOARD_CONNECTED_ITEM_DESC;
2 changes: 1 addition & 1 deletion pcbnew/dialogs/pcb_properties_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ void PCB_PROPERTIES_PANEL::updateLists( const BOARD* aBoard )
nets.Add( netinfo.second->GetNetname(), netinfo.first );
}

auto netProperty = m_propMgr.GetProperty( TYPE_HASH( BOARD_CONNECTED_ITEM ), _( "Net" ) );
auto netProperty = m_propMgr.GetProperty( TYPE_HASH( BOARD_CONNECTED_ITEM ), _HKI( "Net" ) );
netProperty->SetChoices( nets );
}

0 comments on commit fe7e665

Please sign in to comment.