mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 15:47:06 +08:00
Update party.py
This commit is contained in:
parent
e237a3755f
commit
50fa53ebfe
@ -482,7 +482,11 @@ class PartyWindow(bui.Window):
|
|||||||
port_num=info.port,
|
port_num=info.port,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
bui.screenmessage('Not connected to a server')
|
bui.screenmessage(
|
||||||
|
bui.Lstr(
|
||||||
|
resource='NotConnectedToServerText'
|
||||||
|
)
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
print(f'unhandled popup type: {self._popup_type}')
|
print(f'unhandled popup type: {self._popup_type}')
|
||||||
|
|
||||||
@ -501,6 +505,8 @@ class PartyWindow(bui.Window):
|
|||||||
bui.getsound('error').play()
|
bui.getsound('error').play()
|
||||||
return
|
return
|
||||||
port = port_num
|
port = port_num
|
||||||
|
if port_num is None:
|
||||||
|
port = -1
|
||||||
if port > 65535 or port < 0:
|
if port > 65535 or port < 0:
|
||||||
bui.screenmessage(
|
bui.screenmessage(
|
||||||
bui.Lstr(resource='internal.invalidPortErrorText'),
|
bui.Lstr(resource='internal.invalidPortErrorText'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user