From 57895a1901da11388dc88187cdc90f085cb94e88 Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Tue, 11 Apr 2023 08:59:08 +0200 Subject: [PATCH] Remove UNKNOWN_BOOTLOADER dialog --- internal/ui_model.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/internal/ui_model.go b/internal/ui_model.go index 2fad848..0846553 100644 --- a/internal/ui_model.go +++ b/internal/ui_model.go @@ -48,7 +48,6 @@ const ( USB USB_GROUP INSTALL - UNKNOWN_BOOTLOADER DONE ) @@ -99,15 +98,14 @@ func (m *model) initLists(width, height int) { defaultList, choiceList, choiceList, - choiceList, } // Configure offsets for sizing m.offsetx = []int{ - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, } m.offsety = []int{ - 18, 2, 3, 13, 5, 2, 3, 12, 0, 0, + 18, 2, 3, 13, 5, 2, 3, 12, 0, } // Update the styles with the correct width @@ -174,11 +172,4 @@ func (m *model) initLists(width, height int) { } m.lists[DONE].SetItems(items) m.lists[DONE].SetSize(m.width-m.offsetx[DONE], m.height-m.offsety[DONE]) - - // Init DONE choises - items = []list.Item{ - item{title: "FINISH"}, - } - m.lists[UNKNOWN_BOOTLOADER].SetItems(items) - m.lists[UNKNOWN_BOOTLOADER].SetSize(m.width-m.offsetx[UNKNOWN_BOOTLOADER], m.height-m.offsety[UNKNOWN_BOOTLOADER]) }