From 1e0d38a259ef8133a90c8d02946be1d1c3031a6c Mon Sep 17 00:00:00 2001 From: JeanExtreme002 Date: Thu, 4 Jun 2026 23:40:24 -0300 Subject: [PATCH] fix: unlock scanner controls when switching to a new process When the target process exits, _check_process_alive disables the scanner via set_busy(True). Changing to a new live process did not reset that state, leaving the scan controls disabled against the new target. Reset set_busy(False) in _change_process so the controls re-enable. --- PyMemoryEditor/app/main_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PyMemoryEditor/app/main_window.py b/PyMemoryEditor/app/main_window.py index 9343ccb..78f28a2 100644 --- a/PyMemoryEditor/app/main_window.py +++ b/PyMemoryEditor/app/main_window.py @@ -796,6 +796,10 @@ def _change_process(self) -> None: self._region_snapshot = None self._results_model.clear() self._scanner.set_has_results(False) + # If the previous target exited, _check_process_alive locked the scanner + # via set_busy(True). Switching to a live process must release that lock, + # otherwise the scan controls stay disabled against the new target. + self._scanner.set_busy(False) # Tear down auxiliary dialogs that hold a reference to the old # process — reopening them rebuilds against the new target.