mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
commit
e7c518eb2a
@ -15,7 +15,6 @@ package robotgo
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/robotn/xgb"
|
"github.com/robotn/xgb"
|
||||||
@ -224,10 +223,11 @@ func Alert(title, msg string, args ...string) bool {
|
|||||||
c += cancelBtn + ":1"
|
c += cancelBtn + ":1"
|
||||||
}
|
}
|
||||||
c += ` -default ` + defaultBtn
|
c += ` -default ` + defaultBtn
|
||||||
|
c += ` -geometry 400x200`
|
||||||
|
|
||||||
out, err := Run(c)
|
out, err := Run(c)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Alert: ", err, ". ", string(out))
|
// fmt.Println("Alert: ", err, ". ", string(out))
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user