mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3] Fix crash when calling window.Show() before application.Run()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user