mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 16:13:23 +08:00
Update publictab.py
This commit is contained in:
parent
32dd54303a
commit
a17ac19946
@ -963,6 +963,10 @@ class PublicGatherTab(GatherTab):
|
|||||||
self._update_party_rows()
|
self._update_party_rows()
|
||||||
|
|
||||||
def _update_party_rows(self) -> None:
|
def _update_party_rows(self) -> None:
|
||||||
|
|
||||||
|
plus = bui.app.plus
|
||||||
|
assert plus is not None
|
||||||
|
|
||||||
columnwidget = self._join_list_column
|
columnwidget = self._join_list_column
|
||||||
if not columnwidget:
|
if not columnwidget:
|
||||||
return
|
return
|
||||||
@ -976,6 +980,10 @@ class PublicGatherTab(GatherTab):
|
|||||||
edit=self._host_scrollwidget,
|
edit=self._host_scrollwidget,
|
||||||
claims_up_down=(len(self._parties_displayed) > 0),
|
claims_up_down=(len(self._parties_displayed) > 0),
|
||||||
)
|
)
|
||||||
|
bui.textwidget(
|
||||||
|
edit=self._no_servers_text,
|
||||||
|
text=''
|
||||||
|
)
|
||||||
|
|
||||||
# Clip if we have more UI rows than parties to show.
|
# Clip if we have more UI rows than parties to show.
|
||||||
clipcount = len(self._ui_rows) - len(self._parties_displayed)
|
clipcount = len(self._ui_rows) - len(self._parties_displayed)
|
||||||
@ -985,6 +993,15 @@ class PublicGatherTab(GatherTab):
|
|||||||
|
|
||||||
# If we have no parties to show, we're done.
|
# If we have no parties to show, we're done.
|
||||||
if not self._parties_displayed:
|
if not self._parties_displayed:
|
||||||
|
text = self._join_status_text
|
||||||
|
if (
|
||||||
|
plus.get_v1_account_state() == 'signed_in'
|
||||||
|
and cast(str, bui.textwidget(query=text)) == ''
|
||||||
|
):
|
||||||
|
bui.textwidget(
|
||||||
|
edit=self._no_servers_text,
|
||||||
|
text='No Servers Found' #bui.Lstr(resource='notSignedInText')
|
||||||
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
sub_scroll_width = 830
|
sub_scroll_width = 830
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user