FrameTools: Use AppendRadioItem for constructing the frameskip menu

Same thing, less code.
This commit is contained in:
Lioncash 2015-04-20 21:51:23 -04:00
parent 571eee8648
commit ebe0222265
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ wxMenuBar* CFrame::CreateMenu()
wxMenu *skippingMenu = new wxMenu;
emulationMenu->AppendSubMenu(skippingMenu, _("Frame S&kipping"));
for (int i = 0; i < 10; i++)
skippingMenu->Append(IDM_FRAME_SKIP_0 + i, wxString::Format("%i", i), wxEmptyString, wxITEM_RADIO);
skippingMenu->AppendRadioItem(IDM_FRAME_SKIP_0 + i, wxString::Format("%i", i));
skippingMenu->Check(IDM_FRAME_SKIP_0 + SConfig::GetInstance().m_FrameSkip, true);
Movie::SetFrameSkipping(SConfig::GetInstance().m_FrameSkip);