From f2fb3e14ab7881f64cd70a39285f9862bea97880 Mon Sep 17 00:00:00 2001 From: intergrav Date: Thu, 2 Jul 2026 04:38:13 -0400 Subject: [PATCH] fix: truncation --- cmd/restray/tray.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cmd/restray/tray.go b/cmd/restray/tray.go index 5ac6d83..d0b6122 100644 --- a/cmd/restray/tray.go +++ b/cmd/restray/tray.go @@ -338,13 +338,8 @@ func onReady() { for i := 0; i < len(cfg.Profiles) && i < maxProfiles; i++ { key := cfg.Profiles[i].displayName() if !isProfileBusy(key) { - failMsg := getProfileFailStatus(key) - if failMsg != "" { - failMsg = profilePrefix(cfg, cfg.Profiles[i]) + failMsg - if len(failMsg) > maxMenuWidth { - failMsg = failMsg[:maxMenuWidth-1] + "…" - } - mStatusItems[i].SetTitle(failMsg) + if failMsg := getProfileFailStatus(key); failMsg != "" { + statusItem(i).SetTitle(failMsg) } else { mStatusItems[i].SetTitle(profileStatusText(cfg, i)) } -- 2.51.2