Merge pull request #1519 from ogayot/cancel-update

refresh: remove the cancel update button since it is broken
This commit is contained in:
Olivier Gayot 2022-12-14 12:39:12 +01:00 committed by GitHub
commit 6e868ca771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -238,13 +238,11 @@ class RefreshView(BaseView):
self.lb_tasks = ListBox([]) self.lb_tasks = ListBox([])
self.task_to_bar = {} self.task_to_bar = {}
buttons = [
other_btn(_("Cancel update"), on_press=self.check_state_available),
]
self.controller.ui.set_header(_(self.progress_title)) self.controller.ui.set_header(_(self.progress_title))
self._w = screen( # TODO Cancellation of an ongoing self-refresh is not currently
self.lb_tasks, buttons, excerpt=_(self.progress_excerpt)) # 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()) schedule_task(self._update())
async def _update(self): async def _update(self):