Fixed x11 typo error

This commit is contained in:
vcaesar 2022-01-23 14:22:57 -04:00
parent bafa051f92
commit b8b8450f67

View File

@ -184,7 +184,7 @@ func Alert(title, msg string, args ...string) bool {
defaultBtn, cancelBtn := alertArgs(args...)
c := `xmessage -center ` + msg +
` -title ` + title + ` -buttons ` + defaultBtn + ":0,"
if cancleBtn != "" {
if cancelBtn != "" {
c += cancelBtn + ":1"
}
c += ` -default ` + defaultBtn