Skip to content

Commit

Permalink
Fix some missed usage of App interface
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Oct 16, 2024
1 parent 9659333 commit e102db7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/ui/bar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions modules/status/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit e102db7

Please sign in to comment.