From 018dcff814c88195b5ff4330b0606f7482f6f62f Mon Sep 17 00:00:00 2001 From: payno Date: Mon, 10 Jul 2023 07:46:41 +0100 Subject: [PATCH] WaiterOverlay: stop waiting before closing --- src/silx/gui/utils/waiteroverlay.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/silx/gui/utils/waiteroverlay.py b/src/silx/gui/utils/waiteroverlay.py index 46472ea533..e90c4d54de 100644 --- a/src/silx/gui/utils/waiteroverlay.py +++ b/src/silx/gui/utils/waiteroverlay.py @@ -33,6 +33,10 @@ def __init__(self, underlying_widget: qt.QWidget) -> None: def setText(self, text: str): self._waitingButton.setText(text) + def close(self): + self._waitingButton.setWaiting(False) + super().close() + def getBaseWidget(self) -> Optional[qt.QWidget]: return self._baseWidget()