Merge pull request #3733 from EmptyChaos/wx-playbtn-fix
WXGUI: Fix disabled play button not fading
This commit is contained in:
commit
23f6c64525
|
@ -1792,13 +1792,15 @@ void CFrame::UpdateGUI()
|
||||||
{
|
{
|
||||||
m_ToolBar->DeleteTool(IDM_PLAY);
|
m_ToolBar->DeleteTool(IDM_PLAY);
|
||||||
m_ToolBar->InsertTool(position, IDM_PLAY, _("Pause"), m_Bitmaps[Toolbar_Pause],
|
m_ToolBar->InsertTool(position, IDM_PLAY, _("Pause"), m_Bitmaps[Toolbar_Pause],
|
||||||
wxNullBitmap, wxITEM_NORMAL, _("Pause"));
|
WxUtils::CreateDisabledButtonBitmap(m_Bitmaps[Toolbar_Pause]),
|
||||||
|
wxITEM_NORMAL, _("Pause"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_ToolBar->DeleteTool(IDM_PLAY);
|
m_ToolBar->DeleteTool(IDM_PLAY);
|
||||||
m_ToolBar->InsertTool(position, IDM_PLAY, _("Play"), m_Bitmaps[Toolbar_Play],
|
m_ToolBar->InsertTool(position, IDM_PLAY, _("Play"), m_Bitmaps[Toolbar_Play],
|
||||||
wxNullBitmap, wxITEM_NORMAL, _("Play"));
|
WxUtils::CreateDisabledButtonBitmap(m_Bitmaps[Toolbar_Play]),
|
||||||
|
wxITEM_NORMAL, _("Play"));
|
||||||
}
|
}
|
||||||
m_ToolBar->Realize();
|
m_ToolBar->Realize();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue