Skip to content

Commit

Permalink
Tidy the demo code - in case it's contrinuting (it's not)
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed May 14, 2020
1 parent 4daa68d commit 28f6a07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/fyne_demo/screens/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func loadDialogGroup(win fyne.Window) *widget.Group {
)
}

func loadWindowGroup() *widget.Group {
func loadWindowGroup() fyne.Widget {
windowGroup := widget.NewGroup("Windows",
widget.NewButton("New window", func() {
w := fyne.CurrentApp().NewWindow("Hello")
Expand Down Expand Up @@ -209,15 +209,15 @@ func loadWindowGroup() *widget.Group {
}))
}

windowGroup.Append(widget.NewGroup("Other",
otherGroup := widget.NewGroup("Other",
widget.NewButton("Notification", func() {
fyne.CurrentApp().SendNotification(&fyne.Notification{
Title: "Fyne Demo",
Content: "Testing notifications...",
})
})))
}))

return windowGroup
return widget.NewVBox(windowGroup, otherGroup)
}

// DialogScreen loads a panel that lists the dialog windows that can be tested.
Expand Down

0 comments on commit 28f6a07

Please sign in to comment.