mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
Optimize x11 alert show
This commit is contained in:
parent
f110d5bf9e
commit
efc7c90b9f
1 changed files with 2 additions and 1 deletions
|
|
@ -224,10 +224,11 @@ func Alert(title, msg string, args ...string) bool {
|
|||
c += cancelBtn + ":1"
|
||||
}
|
||||
c += ` -default ` + defaultBtn
|
||||
c += ` -geometry 400x200`
|
||||
|
||||
out, err := Run(c)
|
||||
if err != nil {
|
||||
fmt.Println("Alert: ", err, ". ", string(out))
|
||||
// fmt.Println("Alert: ", err, ". ", string(out))
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue