1
0
Fork 0

DBG+BRIDGE: resolved issue #1231 (gui not updated)

This commit is contained in:
mrexodia 2016-11-08 08:54:14 +01:00
parent 83631db154
commit 8ef2e4d990
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
2 changed files with 4 additions and 9 deletions

View File

@ -1026,15 +1026,12 @@ BRIDGE_IMPEXP void GuiUpdateEnable(bool updateNow)
{
bDisableGUIUpdate = false;
if(updateNow)
DbgCmdExecDirect("guiupdateenable");
else
DbgCmdExecDirect("guiupdateenable 0");
GuiUpdateAllViews();
}
BRIDGE_IMPEXP void GuiUpdateDisable()
{
bDisableGUIUpdate = true;
DbgCmdExecDirect("guimsgdisable");
}
BRIDGE_IMPEXP bool GuiIsUpdateDisabled()

View File

@ -137,11 +137,9 @@ bool cbInstrEnableGuiUpdate(int argc, char* argv[])
if(GuiIsUpdateDisabled())
GuiUpdateEnable(false);
duint value;
//default: update gui
if(argc > 1 && valfromstring(argv[1], &value) && value == 0)
return true;
duint cip = GetContextDataEx(hActiveThread, UE_CIP);
DebugUpdateGuiAsync(cip, false);
//argv[1]=="1" = update GUI
if(argc > 1 && valfromstring(argv[1], &value) && value == 1)
GuiUpdateAllViews();
return true;
}