drivers: add button to go back when no drivers are available

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2022-03-31 12:43:00 +02:00
parent 6a2e8b6a49
commit 5a4b66553c
1 changed files with 4 additions and 1 deletions

View File

@ -143,7 +143,10 @@ class DriversView(BaseView):
self.cont_btn = ok_btn(
_("Continue"),
on_press=lambda sender: self.done(False))
self._w = screen(rows, [self.cont_btn])
self.back_btn = back_btn(
_("Back"),
on_press=lambda sender: self.cancel())
self._w = screen(rows, [self.cont_btn, self.back_btn])
self.status = DriversViewStatus.NO_DRIVERS
def make_main(self, install: bool, drivers: List[str]) -> None: