mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
[v3] change window back to *WebviewWindow
This commit is contained in:
parent
6feab70a72
commit
d047c22526
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue