mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
fix for an un-threadsafe call to UpdateGUI (oops)
This commit is contained in:
@ -863,8 +863,12 @@ int GetCmdForHotkey(unsigned int key)
|
|||||||
|
|
||||||
void OnAfterLoadCallback()
|
void OnAfterLoadCallback()
|
||||||
{
|
{
|
||||||
|
// warning: this gets called from the CPU thread, so we should only queue things to do on the proper thread
|
||||||
if(main_frame)
|
if(main_frame)
|
||||||
main_frame->UpdateGUI();
|
{
|
||||||
|
wxCommandEvent event(wxEVT_HOST_COMMAND, IDM_UPDATEGUI);
|
||||||
|
main_frame->GetEventHandler()->AddPendingEvent(event);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TASManipFunction(SPADStatus *PadStatus, int controllerID)
|
void TASManipFunction(SPADStatus *PadStatus, int controllerID)
|
||||||
|
Reference in New Issue
Block a user