Commit ca10f3dcff

ca10f3dcffd4a00461882db2e883f2ff8ac02721

parent: 92f9c5fad6

Unsigned

Wraient <wraient.911@gmail.com> · 2026-07-22 20:33 UTC

Fix: put Update now first in update prompt options

Number option labels so alphabetical menu sorting keeps Update now first.

Layout: unified · split

internal/update.go +6 −5
@@ -324,12 +324,13 @@ func HandlePendingUpdatePrompt(config *CurdConfig, currentVersion string) bool {
324324 return false
325325 }
326326
327 // Numbered labels keep priority order under DynamicSelect's alphabetical sort.
327328 options := []SelectionOption{
328 {Key: "update", Label: "Update now"},
329 {Key: "later", Label: "Remind me later"},
330 {Key: "skip", Label: "Skip this version"},
331 {Key: "disable", Label: "Turn off automatic update checks"},
332 {Key: "continue", Label: "Continue without updating"},
329 {Key: "update", Label: "1. Update now"},
330 {Key: "later", Label: "2. Remind me later"},
331 {Key: "skip", Label: "3. Skip this version"},
332 {Key: "disable", Label: "4. Turn off automatic update checks"},
333 {Key: "continue", Label: "5. Continue without updating"},
333334 }
334335 prompt, message := buildUpdatePromptMessage(currentVersion, state)
335336