This commit is contained in:
Dpeta 2022-06-30 10:15:06 +02:00
parent 4e2035408c
commit 96efc351f5
2 changed files with 7 additions and 2 deletions

4
irc.py
View file

@ -810,6 +810,10 @@ class PesterHandler(DefaultCommandHandler):
self.parent.cannotSendToChan.emit(channel, msg)
def toomanypeeps(self, *stuff):
self.parent.tooManyPeeps.emit()
#def badchanmask(channel, *args):
# # Channel name is not valid.
# msg = ' '.join(args)
# self.parent.forbiddenchannel.emit(channel, msg)
def forbiddenchannel(self, server, handle, channel, msg):
# Channel is forbidden.
self.parent.forbiddenchannel.emit(channel, msg)

View file

@ -300,8 +300,9 @@ class PesterToast(QtWidgets.QWidget, DefaultToast):
@QtCore.pyqtSlot(QtCore.QVariant)
def updateBottomLeftAnimation(self, value):
#p = QtWidgets.QApplication.desktop().availableGeometry(self).bottomRight()
for screen in QtWidgets.QApplication.screens():
p = screen.availableGeometry().bottomRight()
screens = QtWidgets.QApplication.screens()
screen = screens[0] # Main window?
p = screen.availableGeometry().bottomRight()
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))