mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 14:53:46 +08:00
mici: fix update failed alert layout (#39348)
This commit is contained in:
committed by
firestar5683
parent
c80c42ebb2
commit
73b577237e
@@ -13,7 +13,7 @@
|
||||
"severity": 1
|
||||
},
|
||||
"Offroad_UpdateFailed": {
|
||||
"text": "Unable to download updates\n%1",
|
||||
"text": "Unable to download updates.\n%1",
|
||||
"severity": 1,
|
||||
"_comment": "Set extra field to the failed reason."
|
||||
},
|
||||
|
||||
@@ -109,7 +109,7 @@ class AlertItem(Widget):
|
||||
return title, body
|
||||
else:
|
||||
# No sentence boundary found, return full text as title
|
||||
return "", text
|
||||
return text.strip(), ""
|
||||
|
||||
def _update_content(self):
|
||||
"""Update text and calculate height."""
|
||||
|
||||
Reference in New Issue
Block a user