Skip the USB controller views while we do not have QuickEmu support
This commit is contained in:
parent
5f38467e23
commit
b4abc350e0
2 changed files with 8 additions and 2 deletions
|
@ -21,9 +21,12 @@ func (m *model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||||
}
|
}
|
||||||
case "ctrl+z", "backspace":
|
case "ctrl+z", "backspace":
|
||||||
// Go backwards in the model
|
// Go backwards in the model
|
||||||
if m.focused > 0 {
|
if m.focused > 0 && m.focused != DONE {
|
||||||
m.focused--
|
m.focused--
|
||||||
return m, nil
|
return m, nil
|
||||||
|
} else if m.focused == DONE {
|
||||||
|
// Since we have no QuickEmu support, skip the usb controller configuration
|
||||||
|
m.focused = VIDEO
|
||||||
} else {
|
} else {
|
||||||
// If we are at the beginning, just exit
|
// If we are at the beginning, just exit
|
||||||
return m, tea.Quit
|
return m, tea.Quit
|
||||||
|
|
|
@ -78,7 +78,10 @@ func (m *model) processSelection() bool {
|
||||||
configs.Set_Modprobe(gpu_IDs)
|
configs.Set_Modprobe(gpu_IDs)
|
||||||
|
|
||||||
// Go to the next view
|
// 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:
|
case INTRO:
|
||||||
// This is an OK Dialog
|
// This is an OK Dialog
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue