From 8f42b8404e9e51a97e522c85e8eca49e29619dd0 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Tue, 13 Dec 2022 15:02:25 +0100 Subject: [PATCH] refresh: remove the cancel update button since it is broken Cancelling the installer self refresh does not work. Clicking on the button simply goes back to the screen asking the user if they want to update ; but the refresh operation still continues in the background. Since we do not have a simple way to implement refresh cancellation at the moment, we are just removing the button. Signed-off-by: Olivier Gayot --- subiquity/ui/views/refresh.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/subiquity/ui/views/refresh.py b/subiquity/ui/views/refresh.py index 6b40f685..dac9b6f1 100644 --- a/subiquity/ui/views/refresh.py +++ b/subiquity/ui/views/refresh.py @@ -238,13 +238,11 @@ class RefreshView(BaseView): self.lb_tasks = ListBox([]) self.task_to_bar = {} - buttons = [ - other_btn(_("Cancel update"), on_press=self.check_state_available), - ] - self.controller.ui.set_header(_(self.progress_title)) - self._w = screen( - self.lb_tasks, buttons, excerpt=_(self.progress_excerpt)) + # TODO Cancellation of an ongoing self-refresh is not currently + # implemented on the server side. Let's include a cancel button when we + # have an API for it. + self._w = screen(self.lb_tasks, [], excerpt=_(self.progress_excerpt)) schedule_task(self._update()) async def _update(self):