pull/36245/head
Shane Smiskol 5 days ago
parent 22a0599047
commit c3311e5241
  1. 5
      selfdrive/ui/widgets/offroad_alerts.py

@ -312,7 +312,7 @@ class UpdateAlert(AbstractAlert):
def refresh(self) -> bool: def refresh(self) -> bool:
update_available: bool = self.params.get_bool("UpdateAvailable") update_available: bool = self.params.get_bool("UpdateAvailable")
if update_available: if update_available:
self.release_notes = self.params.get("UpdaterNewReleaseNotes") self.release_notes = (self.params.get("UpdaterCurrentReleaseNotes") or b"").decode("utf8").strip()
self._cached_content_height = 0 self._cached_content_height = 0
return update_available return update_available
@ -329,7 +329,8 @@ class UpdateAlert(AbstractAlert):
return self._cached_content_height return self._cached_content_height
def _render_content(self, content_rect: rl.Rectangle): def _render_content(self, content_rect: rl.Rectangle):
self.release_notes = "<h1>These are epic release notes</h1>\n\n<p>- Feature 1</p>\n<p>- Feature 2</p>\n<p>- Bug fixes and improvements</p>\n<p>- Make epic</p>" print(self.release_notes)
# self.release_notes = "<h1>These are epic release notes</h1>\n\n<p>- Feature 1</p>\n<p>- Feature 2</p>\n<p>- Bug fixes and improvements</p>\n<p>- Make epic</p>"
html = HtmlRenderer(text=self.release_notes) html = HtmlRenderer(text=self.release_notes)

Loading…
Cancel
Save