Skip the USB controller views while we do not have QuickEmu support

This commit is contained in:
HikariKnight 2023-04-09 19:23:35 +02:00
parent 5f38467e23
commit b4abc350e0
2 changed files with 8 additions and 2 deletions

View file

@ -21,9 +21,12 @@ func (m *model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
case "ctrl+z", "backspace":
// Go backwards in the model
if m.focused > 0 {
if m.focused > 0 && m.focused != DONE {
m.focused--
return m, nil
} else if m.focused == DONE {
// Since we have no QuickEmu support, skip the usb controller configuration
m.focused = VIDEO
} else {
// If we are at the beginning, just exit
return m, tea.Quit

View file

@ -78,7 +78,10 @@ func (m *model) processSelection() bool {
configs.Set_Modprobe(gpu_IDs)
// Go to the next view
m.focused++
//m.focused++
// Because we have no QuickEmu support yet, just skip USB Controller configuration
m.focused = DONE
case INTRO:
// This is an OK Dialog