mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 15:11:53 +08:00
[v3] Fix crash when calling window.Show()
before application.Run()
This commit is contained in:
parent
651a1a5d66
commit
c34c761c5f
@ -177,6 +177,9 @@ func (w *WebviewWindow) SetAlwaysOnTop(b bool) *WebviewWindow {
|
||||
}
|
||||
|
||||
func (w *WebviewWindow) Show() *WebviewWindow {
|
||||
if globalApplication.impl == nil {
|
||||
return w
|
||||
}
|
||||
if w.impl == nil {
|
||||
w.run()
|
||||
return w
|
||||
|
Loading…
Reference in New Issue
Block a user