1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-07 15:04:19 +00:00

feat: add screen refresh rate display in status view

This commit is contained in:
Tw93
2026-01-03 13:33:49 +08:00
parent 5c1e3a939d
commit da7bb2cde2
3 changed files with 85 additions and 16 deletions

View File

@@ -125,6 +125,9 @@ func renderHeader(m MetricsSnapshot, errMsg string, animFrame int, termWidth int
if len(specs) > 0 {
infoParts = append(infoParts, strings.Join(specs, "/"))
}
if m.Hardware.RefreshRate != "" {
infoParts = append(infoParts, m.Hardware.RefreshRate)
}
if m.Hardware.OSVersion != "" {
infoParts = append(infoParts, m.Hardware.OSVersion)
}