Debugger: Avoid scroll on breakpoint add.

This commit is contained in:
Unknown W. Brackets committed 2022-02-13 07:57:54 -08:00
1 parent 9435938ad9
commit ea6c42aafb
2 files changed
+14

No files matched your search

+3
View File
@@ -412,7 +412,9 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
case ID_DEBUG_ADDBREAKPOINT:
{
CtrlDisAsmView *view = DisAsmView();
keepStatusBarText = true;
view->LockPosition();
bool isRunning = Core_IsActive();
if (isRunning)
{
@@ -425,6 +427,7 @@ BOOL CDisasm::DlgProc(UINT message, WPARAM wParam, LPARAM lParam)
if (isRunning)
Core_EnableStepping(false);
view->UnlockPosition();
keepStatusBarText = false;
}
break;