Merge pull request #3333 from ShadowsFriend/pausebutton_fix
DolphinWX: Fix label change for the play/pause button
This commit is contained in:
commit
556371b2bc
|
@ -1792,17 +1792,19 @@ void CFrame::UpdateGUI()
|
||||||
|
|
||||||
if (PlayTool)
|
if (PlayTool)
|
||||||
{
|
{
|
||||||
|
int position = m_ToolBar->GetToolPos(IDM_PLAY);
|
||||||
|
|
||||||
if (Running)
|
if (Running)
|
||||||
{
|
{
|
||||||
PlayTool->SetLabel(_("Pause"));
|
m_ToolBar->DeleteTool(IDM_PLAY);
|
||||||
PlayTool->SetShortHelp(_("Pause"));
|
m_ToolBar->InsertTool(position, IDM_PLAY, _("Pause"), m_Bitmaps[Toolbar_Pause],
|
||||||
m_ToolBar->SetToolNormalBitmap(IDM_PLAY, m_Bitmaps[Toolbar_Pause]);
|
wxNullBitmap, wxITEM_NORMAL, _("Pause"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PlayTool->SetLabel(_("Play"));
|
m_ToolBar->DeleteTool(IDM_PLAY);
|
||||||
PlayTool->SetShortHelp(_("Play"));
|
m_ToolBar->InsertTool(position, IDM_PLAY, _("Play"), m_Bitmaps[Toolbar_Play],
|
||||||
m_ToolBar->SetToolNormalBitmap(IDM_PLAY, m_Bitmaps[Toolbar_Play]);
|
wxNullBitmap, wxITEM_NORMAL, _("Play"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue