mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Update windowSetupSignalHandlers & linux events
This commit is contained in:
committed by
Travis McLane
parent
4467a1ffa2
commit
bfa53dfd6c
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user