From 28f6a07f1f24b29c7679328b6df22438d8703fbc Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Thu, 14 May 2020 21:57:09 +0100 Subject: [PATCH] Tidy the demo code - in case it's contrinuting (it's not) --- cmd/fyne_demo/screens/window.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/fyne_demo/screens/window.go b/cmd/fyne_demo/screens/window.go index 5337684d05..d696f0246a 100644 --- a/cmd/fyne_demo/screens/window.go +++ b/cmd/fyne_demo/screens/window.go @@ -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") @@ -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.