mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Fixed the save state hotkeys so that they work with the Render to Main Window option.
This commit is contained in:
@ -1398,25 +1398,22 @@ void CFrame::ParseHotkeys(wxKeyEvent &event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
unsigned int i = NUM_HOTKEYS;
|
unsigned int i = NUM_HOTKEYS;
|
||||||
if (!SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain || TASInputHasFocus())
|
for (i = 0; i < NUM_HOTKEYS; i++)
|
||||||
{
|
{
|
||||||
for (i = 0; i < NUM_HOTKEYS; i++)
|
if (IsHotkey(event, i))
|
||||||
{
|
{
|
||||||
if (IsHotkey(event, i))
|
int cmd = GetCmdForHotkey(i);
|
||||||
|
if (cmd >= 0)
|
||||||
{
|
{
|
||||||
int cmd = GetCmdForHotkey(i);
|
wxCommandEvent evt(wxEVT_MENU, cmd);
|
||||||
if (cmd >= 0)
|
wxMenuItem *item = GetMenuBar()->FindItem(cmd);
|
||||||
|
if (item && item->IsCheckable())
|
||||||
{
|
{
|
||||||
wxCommandEvent evt(wxEVT_MENU, cmd);
|
item->wxMenuItemBase::Toggle();
|
||||||
wxMenuItem *item = GetMenuBar()->FindItem(cmd);
|
evt.SetInt(item->IsChecked());
|
||||||
if (item && item->IsCheckable())
|
|
||||||
{
|
|
||||||
item->wxMenuItemBase::Toggle();
|
|
||||||
evt.SetInt(item->IsChecked());
|
|
||||||
}
|
|
||||||
GetEventHandler()->AddPendingEvent(evt);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
GetEventHandler()->AddPendingEvent(evt);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user