1
0
Fork 0

Fix a bug introduced with the full path title

This commit is contained in:
Duncan Ogilvie 2023-03-02 18:16:00 +01:00
parent 3787d7d750
commit e0fe0f2bd2
1 changed files with 11 additions and 8 deletions

View File

@ -1202,9 +1202,11 @@ extern "C" DLL_EXPORT duint _dbg_sendmessage(DBGMSG type, void* param1, void* pa
// check if we need to change the main window title // check if we need to change the main window title
bool bNewWindowLongPath = settingboolget("Gui", "WindowLongPath"); bool bNewWindowLongPath = settingboolget("Gui", "WindowLongPath");
if(DbgIsDebugging() && bWindowLongPath != bNewWindowLongPath) if(bWindowLongPath != bNewWindowLongPath)
{ {
bWindowLongPath = bNewWindowLongPath; bWindowLongPath = bNewWindowLongPath;
if(DbgIsDebugging())
{
duint addr = 0; duint addr = 0;
SELECTIONDATA selection; SELECTIONDATA selection;
if(GuiSelectionGet(GUI_DISASSEMBLY, &selection)) if(GuiSelectionGet(GUI_DISASSEMBLY, &selection))
@ -1213,6 +1215,7 @@ extern "C" DLL_EXPORT duint _dbg_sendmessage(DBGMSG type, void* param1, void* pa
addr = GetContextDataEx(hActiveThread, UE_CIP); addr = GetContextDataEx(hActiveThread, UE_CIP);
DebugUpdateTitleAsync(addr, false); DebugUpdateTitleAsync(addr, false);
} }
}
if(BridgeSettingGet("Symbols", "CachePath", settingText.data())) if(BridgeSettingGet("Symbols", "CachePath", settingText.data()))
{ {