update app titlebar
This commit is contained in:
@@ -14,8 +14,9 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
appname = "supersonic"
|
||||
configFile = "config.toml"
|
||||
appname = "supersonic"
|
||||
displayName = "Supersonic"
|
||||
configFile = "config.toml"
|
||||
)
|
||||
|
||||
func configPath() string {
|
||||
@@ -38,7 +39,7 @@ func main() {
|
||||
if h <= 1 {
|
||||
h = 800
|
||||
}
|
||||
mainWindow := ui.NewMainWindow(fyneApp, appname, myApp, fyne.NewSize(w, h))
|
||||
mainWindow := ui.NewMainWindow(fyneApp, displayName, myApp, fyne.NewSize(w, h))
|
||||
|
||||
// TODO: There is some race condition with running this initial startup
|
||||
// task immediately before showing and running the window/Fyne main loop where
|
||||
|
||||
+2
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user