[v3] change window back to *WebviewWindow

This commit is contained in:
Travis McLane 2023-09-28 17:10:17 -05:00
commit d047c22526

View file

@ -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
}