[darwin] Support Ignore mouse events

[darwin] Support applicationSupportsSecureRestorableState
Update video example
This commit is contained in:
Lea Anthony
2023-10-29 20:29:45 +11:00
parent daec8a9a64
commit 985c5bf8e2
7 changed files with 24 additions and 19 deletions
-11
View File
@@ -5,7 +5,6 @@ import (
"fmt"
"log"
"math/rand"
"os"
"runtime"
"strconv"
"time"
@@ -400,16 +399,6 @@ func main() {
_ = w.Print()
})
})
printMenu.Add("Capture PNG").OnClick(func(ctx *application.Context) {
currentWindow(func(w *application.WebviewWindow) {
img, err := w.CapturePNG()
if err != nil {
application.ErrorDialog().SetTitle("Error").SetMessage(err.Error()).Show()
return
}
os.WriteFile("capture.png", img, 0644)
})
})
app.NewWebviewWindowWithOptions(application.WebviewWindowOptions{
BackgroundColour: application.NewRGB(33, 37, 41),