mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3] change window back to *WebviewWindow
This commit is contained in:
@@ -76,7 +76,7 @@ type MessageDialogOptions struct {
|
||||
Message string
|
||||
Buttons []*Button
|
||||
Icon []byte
|
||||
window Window
|
||||
window *WebviewWindow
|
||||
}
|
||||
|
||||
type MessageDialog struct {
|
||||
@@ -133,7 +133,7 @@ func (d *MessageDialog) AddButtons(buttons []*Button) *MessageDialog {
|
||||
}
|
||||
|
||||
func (d *MessageDialog) AttachToWindow(window Window) *MessageDialog {
|
||||
d.window = window
|
||||
d.window = window.(*WebviewWindow)
|
||||
return d
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user