Adjust macOS notification durations
This commit is contained in:
parent
76cfbecc09
commit
997948ccad
@ -35,7 +35,9 @@ func Send(title, text string, critical bool) error {
|
||||
if TerminalNotifierAvailable {
|
||||
args := []string{"-title", "gomuks", "-subtitle", title, "-message", text}
|
||||
if critical {
|
||||
args = append(args, "-timeout", "30")
|
||||
args = append(args, "-timeout", "15")
|
||||
} else {
|
||||
args = append(args, "-timeout", "4")
|
||||
}
|
||||
// if len(iconPath) > 0 {
|
||||
// args = append(args, "-appIcon", iconPath)
|
||||
|
Loading…
Reference in New Issue
Block a user