summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-13 23:40:00 +0200
committerPaul Buetow <paul@buetow.org>2026-02-13 23:40:00 +0200
commit92d55a7c4d46dd3aba92cf937ac7b82c68528faa (patch)
tree00bb26fbecca3678d41c0a67ed1d53f6e008f6d5
parentc37cb5350b60e1ee9d8c7b9f1a661d35d02a3bda (diff)
Show version in SDL window title bar (Loadbars 0.8.0)v0.8.0
Co-authored-by: Cursor <cursoragent@cursor.com>
-rw-r--r--internal/display/display.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/display/display.go b/internal/display/display.go
index a4fcc3c..45b7728 100644
--- a/internal/display/display.go
+++ b/internal/display/display.go
@@ -13,6 +13,7 @@ import (
"codeberg.org/snonux/loadbars/internal/config"
"codeberg.org/snonux/loadbars/internal/constants"
"codeberg.org/snonux/loadbars/internal/stats"
+ "codeberg.org/snonux/loadbars/internal/version"
"github.com/veandco/go-sdl2/sdl"
)
@@ -37,7 +38,7 @@ func Run(ctx context.Context, cfg *config.Config, src stats.Source) error {
title := cfg.Title
if title == "" {
- title = "Loadbars (press h for help on stdout)"
+ title = "Loadbars " + version.Version + " (press h for help on stdout)"
}
window, renderer, err := sdl.CreateWindowAndRenderer(int32(width), int32(height), sdl.WINDOW_RESIZABLE)