Update windowSetupSignalHandlers & linux events

This commit is contained in:
Lea Anthony
2024-03-06 11:42:19 -06:00
committed by Travis McLane
parent 4467a1ffa2
commit bfa53dfd6c
12 changed files with 626 additions and 506 deletions
@@ -6,6 +6,7 @@ import (
"fmt"
"github.com/wailsapp/wails/v3/internal/assetserver"
"github.com/wailsapp/wails/v3/internal/capabilities"
"github.com/wailsapp/wails/v3/internal/runtime"
"github.com/wailsapp/wails/v3/pkg/events"
)
@@ -395,6 +396,7 @@ func (w *linuxWebviewWindow) run() {
w.minimise()
case WindowStateFullscreen:
w.fullscreen()
case WindowStateNormal:
}
startURL, err := assetserver.GetStartURL(w.parent.options.URL)
@@ -414,6 +416,9 @@ func (w *linuxWebviewWindow) run() {
w.execJS(js)
}
})
w.parent.RegisterHook(events.Linux.WindowLoadChanged, func(e *WindowEvent) {
w.execJS(runtime.Core())
})
if w.parent.options.HTML != "" {
w.setHTML(w.parent.options.HTML)
}