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; bDisableGUIUpdate = false;
if(updateNow) if(updateNow)
DbgCmdExecDirect("guiupdateenable"); GuiUpdateAllViews();
else
DbgCmdExecDirect("guiupdateenable 0");
} }
BRIDGE_IMPEXP void GuiUpdateDisable() BRIDGE_IMPEXP void GuiUpdateDisable()
{ {
bDisableGUIUpdate = true; bDisableGUIUpdate = true;
DbgCmdExecDirect("guimsgdisable");
} }
BRIDGE_IMPEXP bool GuiIsUpdateDisabled() BRIDGE_IMPEXP bool GuiIsUpdateDisabled()

View File

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