Commit 65412973 authored by Valentin Valls's avatar Valentin Valls
Browse files

edit_roi_counters now set the focus on the plot

parent 2eef4d33
...@@ -910,6 +910,7 @@ def edit_roi_counters(detector: Lima, acq_time: Optional[float] = None): ...@@ -910,6 +910,7 @@ def edit_roi_counters(detector: Lima, acq_time: Optional[float] = None):
raise RuntimeError( raise RuntimeError(
"Internal error. A plot from this detector was expected but it is not available. Or Flint was closed in between." "Internal error. A plot from this detector was expected but it is not available. Or Flint was closed in between."
) )
plot_proxy.focus()
roi_counters = detector.roi_counters roi_counters = detector.roi_counters
roi_profiles = detector.roi_profiles roi_profiles = detector.roi_profiles
......
...@@ -341,3 +341,4 @@ def test_edit_roi_counters( ...@@ -341,3 +341,4 @@ def test_edit_roi_counters(
assert "roi1" in cam.roi_counters assert "roi1" in cam.roi_counters
assert "roi2" in cam.roi_profiles assert "roi2" in cam.roi_profiles
plot_mock.select_shapes.assert_called_once() plot_mock.select_shapes.assert_called_once()
plot_mock.focus.assert_called_once()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment