mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 08:03:30 +08:00
Removed sending chat msgs with no text
This commit is contained in:
parent
1a1003a8c6
commit
3773c5902c
@ -578,8 +578,10 @@ class PartyWindow(bui.Window):
|
|||||||
self._popup_party_member_is_host = is_host
|
self._popup_party_member_is_host = is_host
|
||||||
|
|
||||||
def _send_chat_message(self) -> None:
|
def _send_chat_message(self) -> None:
|
||||||
bs.chatmessage(cast(str, bui.textwidget(query=self._text_field)))
|
text = cast(str, bui.textwidget(query=self._text_field)).strip()
|
||||||
bui.textwidget(edit=self._text_field, text='')
|
if text != '':
|
||||||
|
bs.chatmessage(text)
|
||||||
|
bui.textwidget(edit=self._text_field, text='')
|
||||||
|
|
||||||
def close(self) -> None:
|
def close(self) -> None:
|
||||||
"""Close the window."""
|
"""Close the window."""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user