Remove UNKNOWN_BOOTLOADER dialog
This commit is contained in:
parent
d76f1fedd0
commit
57895a1901
1 changed files with 2 additions and 11 deletions
|
@ -48,7 +48,6 @@ const (
|
||||||
USB
|
USB
|
||||||
USB_GROUP
|
USB_GROUP
|
||||||
INSTALL
|
INSTALL
|
||||||
UNKNOWN_BOOTLOADER
|
|
||||||
DONE
|
DONE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -99,15 +98,14 @@ func (m *model) initLists(width, height int) {
|
||||||
defaultList,
|
defaultList,
|
||||||
choiceList,
|
choiceList,
|
||||||
choiceList,
|
choiceList,
|
||||||
choiceList,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure offsets for sizing
|
// Configure offsets for sizing
|
||||||
m.offsetx = []int{
|
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{
|
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
|
// 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].SetItems(items)
|
||||||
m.lists[DONE].SetSize(m.width-m.offsetx[DONE], m.height-m.offsety[DONE])
|
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])
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue