Update manualtab.py

This commit is contained in:
Vishal 2023-11-18 16:54:21 +05:30 committed by GitHub
parent 08b1656ad5
commit 30ee6ea7dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,7 @@ class ManualGatherTab(GatherTab):
self._party_edit_name_text: bui.Widget | None = None
self._party_edit_addr_text: bui.Widget | None = None
self._party_edit_port_text: bui.Widget | None = None
self._no_parties_added_text: bui.Widget | None = None
def on_activate(
self,
@ -834,7 +835,10 @@ class ManualGatherTab(GatherTab):
config.commit()
bui.getsound('gunCocking').play()
else:
bui.screenmessage('Invalid Address', color=(1, 0, 0))
bui.screenmessage(
bui.Lstr(resource='internal.invalidAddressErrorText'),
color=(1, 0, 0),
)
bui.getsound('error').play()
def _host_lookup_result(