Skip to content

Commit

Permalink
fix: update CoreViewerLink
Browse files Browse the repository at this point in the history
  • Loading branch information
fdrgsp committed Feb 5, 2024
1 parent 41d5bce commit 9a99aab
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/napari_micromanager/_core_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def timerEvent(self, a0: QTimerEvent | None) -> None:

def _image_snapped(self) -> None:
# If we are in the middle of an MDA, don't update the preview viewer.
if self._mmc.mda.is_running():
if self._mda_handler._mda_running:
return
self._update_viewer(self._mmc.getImage())

Expand All @@ -77,10 +77,6 @@ def _restart_live(self, camera: str, exposure: float) -> None:
@ensure_main_thread # type: ignore [misc]
def _update_viewer(self, data: np.ndarray | None = None) -> None:
"""Update viewer with the latest image from the circular buffer."""
# If we are in the middle of an MDA, don't update the preview viewer.
if self._mmc.mda.is_running():
return

if data is None:
try:
data = self._mmc.getLastImage()
Expand Down

0 comments on commit 9a99aab

Please sign in to comment.