Fix toggling of radio tools in wxOSX wxToolBar.
Always call NSButton::setState(), even when using native toolbar. Closes #16662.
This commit is contained in:
committed by
Vadim Zeitlin
parent
b8f6cb417c
commit
96a8240e87
@@ -597,12 +597,10 @@ void wxToolBarTool::UpdateToggleImage( bool toggle )
|
||||
else
|
||||
[m_toolbarItem setImage:m_bmpNormal.GetNSImage()];
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
if ( IsButton() )
|
||||
[(NSButton*)m_controlHandle setState:(toggle ? NSOnState : NSOffState)];
|
||||
}
|
||||
|
||||
if ( IsButton() )
|
||||
[(NSButton*)m_controlHandle setState:(toggle ? NSOnState : NSOffState)];
|
||||
}
|
||||
|
||||
wxToolBarTool::wxToolBarTool(
|
||||
|
Reference in New Issue
Block a user