From e102db77997f95ea87645b9ae90c85e830af46cf Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Wed, 16 Oct 2024 20:04:34 +0100 Subject: [PATCH] Fix some missed usage of App interface --- internal/ui/bar_test.go | 7 +++++++ modules/status/network.go | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/internal/ui/bar_test.go b/internal/ui/bar_test.go index 5dfad73b..a334710c 100644 --- a/internal/ui/bar_test.go +++ b/internal/ui/bar_test.go @@ -4,6 +4,8 @@ import ( "image/color" "testing" + "fyshos.com/fynedesk" + "fyne.io/fyne/v2" "fyne.io/fyne/v2/canvas" "fyne.io/fyne/v2/test" @@ -40,6 +42,11 @@ func (d *dummyIcon) Run([]string) error { return nil } +func (d *dummyIcon) Source() *fynedesk.AppSource { + // no-op + return nil +} + func testBar(icons []string) *bar { testBar := newBar(wmTest.NewDesktopWithWM(&embededWM{})) testBar.children = []fyne.CanvasObject{} // remove divider, then we add it again later diff --git a/modules/status/network.go b/modules/status/network.go index 7019fc06..51876a7b 100644 --- a/modules/status/network.go +++ b/modules/status/network.go @@ -184,3 +184,7 @@ func (n *networkApp) Hidden() bool { func (n *networkApp) Icon(theme string, size int) fyne.Resource { return wmtheme.WifiIcon } + +func (n *networkApp) Source() *fynedesk.AppSource { + return nil +}