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
|
else
|
||||||
[m_toolbarItem setImage:m_bmpNormal.GetNSImage()];
|
[m_toolbarItem setImage:m_bmpNormal.GetNSImage()];
|
||||||
}
|
}
|
||||||
else
|
|
||||||
#endif
|
#endif
|
||||||
{
|
|
||||||
if ( IsButton() )
|
if ( IsButton() )
|
||||||
[(NSButton*)m_controlHandle setState:(toggle ? NSOnState : NSOffState)];
|
[(NSButton*)m_controlHandle setState:(toggle ? NSOnState : NSOffState)];
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wxToolBarTool::wxToolBarTool(
|
wxToolBarTool::wxToolBarTool(
|
||||||
|
Reference in New Issue
Block a user