update app titlebar

This commit is contained in:
Drew Weymouth
2023-03-04 15:16:39 -08:00
parent 6ab7068113
commit 0a94f6844c
2 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package ui
import (
"fmt"
"supersonic/backend"
"supersonic/res"
"supersonic/ui/browsing"
@@ -70,7 +71,7 @@ func NewMainWindow(fyneApp fyne.App, appName string, app *backend.App, size fyne
m.Window.SetTitle(appName)
return
}
m.Window.SetTitle(song.Title)
m.Window.SetTitle(fmt.Sprintf("%s %s · %s", song.Title, song.Artist, appName))
})
app.ServerManager.OnServerConnected(func() {
m.BrowsingPane.EnableNavigationButtons()