diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-07-21 13:53:54 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-07-21 13:53:54 +0300 |
| commit | 49484cf734848e68b6508ee10aab7dd307bd0ca4 (patch) | |
| tree | c0932bcb32c9c4a4e911eb08d740296583845ba5 /internal/client/ui/core | |
| parent | 5f6845c3997bd5478a1f51a8f108b71afa427a72 (diff) | |
Display cache file location in user settings
Diffstat (limited to 'internal/client/ui/core')
| -rw-r--r-- | internal/client/ui/core/usersettings/usersettings.go | 8 |
1 files changed, 7 insertions, 1 deletions
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(). |
