Remove UNKNOWN_BOOTLOADER dialog

This commit is contained in:
HikariKnight 2023-04-11 08:59:08 +02:00
parent d76f1fedd0
commit 57895a1901

View file

@ -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])
}