From 24e034b34e61b7f7c7a231cff78e104833764732 Mon Sep 17 00:00:00 2001 From: cidoku Date: Tue, 11 Mar 2025 18:04:17 -0300 Subject: [PATCH] whoops --- mainmenu.py | 14 ++++++++------ packets.py | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/mainmenu.py b/mainmenu.py index cbfaf24..b1b1329 100644 --- a/mainmenu.py +++ b/mainmenu.py @@ -288,10 +288,7 @@ class lobby(QtGui.QWidget): def onClicked_connect(self): if not self.can_connect: return - self.connectprogress.setText('Connecting...') - self.connectingimg.show() - self.connectcancel.show() - self.connectprogress.show() + self.btn_public.hide() self.btn_favs.hide() self.btn_refresh.hide() @@ -301,9 +298,14 @@ class lobby(QtGui.QWidget): self.onlineplayers.hide() self.serverinfo.hide() self.settingsbtn.hide() + + self.connectprogress.setText('Connecting...') + self.connectingimg.show() + self.connectcancel.show() + self.connectprogress.show() self.aoserverinfo.tcp.send('askchaa#%') - #self.gamewindow.gamewidget.start_demo("test.demo") - #self.gamewindow.stackwidget.setCurrentWidget(self.gamewindow.gamewidget) + # self.gamewindow.gamewidget.start_demo("test.demo") + # self.gamewindow.stackwidget.setCurrentWidget(self.gamewindow.gamewidget) def onClicked_cancelconnect(self): self.connectingimg.hide() diff --git a/packets.py b/packets.py index e91cc14..67d6416 100644 --- a/packets.py +++ b/packets.py @@ -94,7 +94,7 @@ def handle_packets(caller, total, record=True): audio.sethandleattr(caller.parent.wtcesfx, BASS_ATTRIB_VOL, caller.parent.soundslider.value() / 100.0) if caller.parent.wtcesfx: audio.playhandle(caller.parent.wtcesfx, True) - caller.parent.WTCEsignal.emit(testimony, variant) + caller.parent.wtcesignal.emit(testimony, variant) elif header == 'HP': kind = int(network[1])