Skip to content

Commit

Permalink
fix ImageStack: WaiterOverlay has been renamed WaitingOverlay
Browse files Browse the repository at this point in the history
  • Loading branch information
payno committed Aug 28, 2023
1 parent f9d4be1 commit 8dc57ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/silx/gui/plot/ImageStack.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from silx.gui.widgets.FrameBrowser import HorizontalSliderWithBrowser
import typing
import logging
from silx.gui.widgets.waiteroverlay import WaiterOverlay
from silx.gui.widgets.WaitingOverlay import WaitingOverlay

_logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -200,7 +200,7 @@ def __init__(self, parent=None) -> None:
# main widget
self._plot = Plot2D(parent=self)
self._plot.setAttribute(qt.Qt.WA_DeleteOnClose, True)
self._waiterOverlay = WaiterOverlay(self._plot)
self._waitingOverlay = WaitingOverlay(self._plot)
self.setWindowTitle("Image stack")
self.setCentralWidget(self._plot)

Expand All @@ -225,7 +225,7 @@ def __init__(self, parent=None) -> None:

def close(self) -> bool:
self._freeLoadingThreads()
self._waiterOverlay.close()
self._waitingOverlay.close()
self._plot.close()
super(ImageStack, self).close()

Expand Down Expand Up @@ -497,12 +497,12 @@ def setCurrentUrl(self, url: typing.Union[DataUrl, str]) -> None:
self._plot.clear()
else:
if self._current_url.path() in self._urlData:
self._waiterOverlay.setWaiting(activate=False)
self._waitingOverlay.setWaiting(activate=False)
self._plot.addImage(self._urlData[url.path()], resetzoom=self._autoResetZoom)
else:
self._plot.clear()
self._load(url)
self._waiterOverlay.setWaiting(True)
self._waitingOverlay.setWaiting(True)
self._preFetch(self._getNNextUrls(self.__n_prefetch, url))
self._preFetch(self._getNPreviousUrls(self.__n_prefetch, url))
self._urlsTable.blockSignals(old_url_table)
Expand Down

0 comments on commit 8dc57ef

Please sign in to comment.