Make messageboxes public
This commit is contained in:
@ -34,7 +34,7 @@ import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func messageBox(title, text string) bool {
|
||||
func MessageBox(title, text string) bool {
|
||||
if runtime.GOOS == "linux" {
|
||||
err := exec.Command("zenity", "--question", "--title", title, "--text", text).Run()
|
||||
if err != nil {
|
||||
|
@ -31,7 +31,7 @@ import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
func messageBox(title, text string) bool {
|
||||
func MessageBox(title, text string) bool {
|
||||
user32 := syscall.NewLazyDLL("user32.dll")
|
||||
messageBoxW := user32.NewProc("MessageBoxW")
|
||||
mbYesNo := 0x00000004
|
||||
|
Reference in New Issue
Block a user