mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-19 15:31:53 +00:00
update ui after savestate load (because loading a savestate can affect whether certain items should be grayed out in the menu)
This commit is contained in:
parent
cfad00d6e0
commit
c88e4a097e
4 changed files with 24 additions and 0 deletions
|
@ -410,6 +410,8 @@ CFrame::CFrame(wxFrame* parent,
|
|||
g_TASInputDlg = new TASInputDlg(this);
|
||||
Movie::SetInputManip(TASManipFunction);
|
||||
|
||||
State::SetOnAfterLoadCallback(OnAfterLoadCallback);
|
||||
|
||||
// Setup perspectives
|
||||
if (g_pCodeWindow)
|
||||
{
|
||||
|
@ -859,6 +861,12 @@ int GetCmdForHotkey(unsigned int key)
|
|||
return -1;
|
||||
}
|
||||
|
||||
void OnAfterLoadCallback()
|
||||
{
|
||||
if(main_frame)
|
||||
main_frame->UpdateGUI();
|
||||
}
|
||||
|
||||
void TASManipFunction(SPADStatus *PadStatus, int controllerID)
|
||||
{
|
||||
if (main_frame)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue