Commit ab92766619
Unsigned
Layout: unified · split
internal/curd.go +2 −2
| @@ -260,8 +260,8 @@ func SetupCurd(userCurdConfig *CurdConfig, anime *Anime, user *User, databaseAni | |||
| 260 | ExitCurd(fmt.Errorf("Error selecting anime")) | 260 | ExitCurd(fmt.Errorf("Error selecting anime")) |
| 261 | } | 261 | } |
| 262 | 262 | ||
| 263 | if anilistSelectedOption.Key == "-1" || anilistSelectedOption.Label == "quit" { | 263 | if anilistSelectedOption.Key == "-1" { |
| 264 | ExitCurd(fmt.Errorf("Quit")) | 264 | ExitCurd(nil) |
| 265 | } | 265 | } |
| 266 | 266 | ||
| 267 | if anilistSelectedOption.Label == "add_new" { | 267 | if anilistSelectedOption.Label == "add_new" { |
internal/selection_menu.go +4
| @@ -162,6 +162,10 @@ func (m *Model) filterOptions() { | |||
| 162 | Key: "add_new", | 162 | Key: "add_new", |
| 163 | }) | 163 | }) |
| 164 | } | 164 | } |
| 165 | m.filteredKeys = append(m.filteredKeys, SelectionOption{ | ||
| 166 | Label: "Quit", | ||
| 167 | Key: "-1", | ||
| 168 | }) | ||
| 165 | } | 169 | } |
| 166 | 170 | ||
| 167 | // DynamicSelect displays a simple selection prompt without extra features | 171 | // DynamicSelect displays a simple selection prompt without extra features |