ommit RuntimeError:
wrapped C/C++ object of type QtWidgetOverlay has been deleted
@@ -391,8 +391,12 @@ def remove_flash_animation(widget_ref: weakref.ref[QWidget]):
if widget_ref() is None:
return
widget = widget_ref()
+ try:
widget.setGraphicsEffect(None)
del widget._flash_animation
+ except RuntimeError:
+ # RuntimeError: wrapped C/C++ object of type QtWidgetOverlay has been deleted
+ pass
@contextmanager
