From f82051aff55041a7a91535a754f377bd16463628 Mon Sep 17 00:00:00 2001 From: cidoku Date: Thu, 20 Feb 2025 19:51:55 -0300 Subject: [PATCH] reset window size when picking same character --- charselect.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charselect.py b/charselect.py index 3d87981..02dd8fe 100644 --- a/charselect.py +++ b/charselect.py @@ -130,8 +130,10 @@ class charselect(QtGui.QWidget): self.buttons[ind].setPixmap(QtGui.QPixmap(filename)) def onCharClicked(self, ind): - if self.parent.charname.lower() == self.charlist[ind+self.page*self.max_chars_on_page][0].lower(): + if self.parent.charname.lower() == self.charlist[ind + self.page * self.max_chars_on_page][0].lower(): self.hide() + self.parent.gamewindow.setFixedSize(self.parent.width, self.parent.height) + self.parent.gamewindow.center() return self.parent.tcp.send("CC#0#"+str(ind+(self.page*self.max_chars_on_page))+"#ur mom gay#%")