mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-14 06:54:32 +02:00
Reorder Cancel option in menus to be more consistent (fixes #32)
This commit is contained in:
@@ -292,6 +292,7 @@ func searchCurseforgeInternal(args []string, mcVersion string) (bool, modInfo) {
|
||||
|
||||
menu := wmenu.NewMenu("Choose a number:")
|
||||
|
||||
menu.Option("Cancel", nil, false, nil)
|
||||
if len(fuzzySearchResults) == 0 {
|
||||
for i, v := range results {
|
||||
menu.Option(v.Name, v, i == 0, nil)
|
||||
@@ -301,7 +302,6 @@ func searchCurseforgeInternal(args []string, mcVersion string) (bool, modInfo) {
|
||||
menu.Option(results[v.Index].Name, results[v.Index], i == 0, nil)
|
||||
}
|
||||
}
|
||||
menu.Option("Cancel", nil, false, nil)
|
||||
|
||||
var modInfoData modInfo
|
||||
var cancelled bool
|
||||
|
Reference in New Issue
Block a user