Skip to content

Commit

Permalink
update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
SpoilerRules committed Mar 10, 2025
1 parent 3f7c395 commit b39c7de
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,16 @@ func showMainMenu() {
"Install Pipsi",
"Check for updates",
"Manage Pipsi shortcuts",
"Open Installation Folder",
"Doesn't have 'Insert' key?",
}

if titles := cheatInstallationData.getInstalledTitles(); len(titles) > 0 {
options = append(options, "Open Installation Folder")
if len(cheatInstallationData.getInstalledTitles()) == 0 {
options = slices.DeleteFunc(
options, func(s string) bool {
return s == "Check for updates" || s == "Open Installation Folder"
},
)
}

return huh.NewOptions(options...)
Expand Down

0 comments on commit b39c7de

Please sign in to comment.