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