mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 03:52:41 +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 {
|
func (w *WebviewWindow) Show() *WebviewWindow {
|
||||||
|
if globalApplication.impl == nil {
|
||||||
|
return w
|
||||||
|
}
|
||||||
if w.impl == nil {
|
if w.impl == nil {
|
||||||
w.run()
|
w.run()
|
||||||
return w
|
return w
|
||||||
|
Loading…
Reference in New Issue
Block a user