mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[darwin] Support Ignore mouse events
[darwin] Support applicationSupportsSecureRestorableState Update video example
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user