From 49484cf734848e68b6508ee10aab7dd307bd0ca4 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Mon, 21 Jul 2025 13:53:54 +0300 Subject: [PATCH] Display cache file location in user settings --- internal/client/ui/core/usersettings/usersettings.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/client/ui/core/usersettings/usersettings.go b/internal/client/ui/core/usersettings/usersettings.go index f7664fc..271b384 100644 --- a/internal/client/ui/core/usersettings/usersettings.go +++ b/internal/client/ui/core/usersettings/usersettings.go @@ -186,6 +186,12 @@ func (m Model) View() string { Width(m.nameWidth). Render(configFile) + cacheFile := "Cache File: " + highlightedStyle().Render(config.CacheFile) + cacheFile = lipgloss.NewStyle(). + Background(colors.Background).Foreground(colors.White). + Width(m.nameWidth). + Render(cacheFile) + option := highlightedStyle().Render("\"anonymous_device_analytics\": false") analyticsOptOut := "Anonymous device analytics can be disabled in your config file by setting: " + option analyticsOptOut = lipgloss.NewStyle(). @@ -194,7 +200,7 @@ func (m Model) View() string { Render(analyticsOptOut) content := flex.NewVertical( - analyticsOptOut, configFile, name, description, private, update, del, + analyticsOptOut, configFile, cacheFile, name, description, private, update, del, ).WithGap(1).View() return lipgloss.NewStyle().