Bug fix: Wrap long connection error messages. Fixes #14
This commit is contained in:
parent
06039ada59
commit
1f5fd9d42f
2 changed files with 12 additions and 0 deletions
|
@ -30,6 +30,7 @@ CHANGELOG
|
|||
* Memo case insensitive for userlist and modes - Kiooeht [evacipatedBox]
|
||||
* Move hidden chums when deleting group - Kiooeht [evacipatedBox]
|
||||
* Don't allow rename groups with parenthesis - Kiooeht [evacipatedBox]
|
||||
* Wrap long error messages - Kiooeht [evacipatedBox]
|
||||
|
||||
|
||||
### 3.41.3
|
||||
|
|
|
@ -2906,6 +2906,17 @@ Click this message to never see this again.")
|
|||
|
||||
def showLoading(self, widget, msg="CONN3CT1NG"):
|
||||
self.widget.show()
|
||||
if len(msg) > 60:
|
||||
newmsg = []
|
||||
while len(msg) > 60:
|
||||
s = msg.rfind(" ", 0, 60)
|
||||
if s == -1:
|
||||
break
|
||||
newmsg.append(msg[:s])
|
||||
newmsg.append("\n")
|
||||
msg = msg[s+1:]
|
||||
newmsg.append(msg)
|
||||
msg = "".join(newmsg)
|
||||
if hasattr(self.widget, 'loadingscreen') and widget.loadingscreen:
|
||||
widget.loadingscreen.loadinglabel.setText(msg)
|
||||
if self.reconnectok:
|
||||
|
|
Loading…
Reference in a new issue