minor fix
This commit is contained in:
parent
eb2340bc23
commit
788972554b
|
@ -60,6 +60,7 @@ CONTEXT_MENU::~CONTEXT_MENU()
|
|||
*/
|
||||
static void set_wxMenuIcon( wxMenuItem* aMenu, const BITMAP_OPAQUE* aIcon )
|
||||
{
|
||||
// Retrieve the global applicaton show icon option:
|
||||
bool useImagesInMenus = Pgm().GetUseIconsInMenus();
|
||||
|
||||
if( aIcon && useImagesInMenus )
|
||||
|
@ -71,13 +72,7 @@ static void set_wxMenuIcon( wxMenuItem* aMenu, const BITMAP_OPAQUE* aIcon )
|
|||
|
||||
void CONTEXT_MENU::SetIcon( const BITMAP_OPAQUE* aIcon )
|
||||
{
|
||||
// Retrieve the global applicaton show icon option:
|
||||
bool useImagesInMenus = Pgm().GetUseIconsInMenus();
|
||||
|
||||
if( useImagesInMenus )
|
||||
m_icon = aIcon;
|
||||
else
|
||||
m_icon = nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue