[v3] change window back to *WebviewWindow

This commit is contained in:
Travis McLane
2023-09-28 17:10:17 -05:00
parent 6feab70a72
commit d047c22526
+2 -2
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
}