Test for possible mac crash fix

This commit is contained in:
Dpeta 2021-11-29 23:09:32 +01:00
parent 627a5a6391
commit ad2c79d0c6

View file

@ -287,8 +287,9 @@ class PesterToast(QtWidgets.QWidget, DefaultToast):
@QtCore.pyqtSlot(QtCore.QVariant)
def updateBottomLeftAnimation(self, value):
p = QtWidgets.QApplication.desktop().availableGeometry(self).bottomRight()
val = float(self.height())/100
self.move(p.x()-self.width(), p.y() - (value * val) +1)
val = (self.height())/100
# Does type casting this to an int have any negative consequences?
self.move(int(p.x()-self.width()), int(p.y() - (value * val) +1))
self.layout().setSpacing(0)
QtWidgets.QWidget.show(self)