Fix defaults.

This commit is contained in:
Nuno Cruces 2021-03-04 13:15:06 +00:00
parent a422ef6a6d
commit e67791f7d7

View file

@ -217,18 +217,23 @@ func loadFlags() []zenity.Option {
setDefault(&title, "Error") setDefault(&title, "Error")
setDefault(&icon, "dialog-error") setDefault(&icon, "dialog-error")
setDefault(&text, "An error has occurred.") setDefault(&text, "An error has occurred.")
setDefault(&okLabel, "OK")
case infoDlg: case infoDlg:
setDefault(&title, "Information") setDefault(&title, "Information")
setDefault(&icon, "dialog-information") setDefault(&icon, "dialog-information")
setDefault(&text, "All updates are complete.") setDefault(&text, "All updates are complete.")
setDefault(&okLabel, "OK")
case warningDlg: case warningDlg:
setDefault(&title, "Warning") setDefault(&title, "Warning")
setDefault(&icon, "dialog-warning") setDefault(&icon, "dialog-warning")
setDefault(&text, "Are you sure you want to proceed?") setDefault(&text, "Are you sure you want to proceed?")
setDefault(&okLabel, "OK")
case questionDlg: case questionDlg:
setDefault(&title, "Question") setDefault(&title, "Question")
setDefault(&icon, "dialog-question") setDefault(&icon, "dialog-question")
setDefault(&text, "Are you sure you want to proceed?") setDefault(&text, "Are you sure you want to proceed?")
setDefault(&okLabel, "Yes")
setDefault(&cancelLabel, "No")
default: default:
setDefault(&text, "") setDefault(&text, "")
} }