From dc6c10155c33033b386665e7882b91be9837f55a Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 11 Jul 2025 16:07:15 +0300 Subject: Added anonymous_device_analytics option on the client and added cache dir to store things like device ID and TOS hashes (only storing device ID currently) --- internal/client/ui/auth/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/client/ui/auth/auth.go') diff --git a/internal/client/ui/auth/auth.go b/internal/client/ui/auth/auth.go index 8e6dffb..47a3f89 100644 --- a/internal/client/ui/auth/auth.go +++ b/internal/client/ui/auth/auth.go @@ -378,7 +378,7 @@ func (m *Model) SetSignup(signup bool) tea.Cmd { m.focusIndex = -1 m.CycleForward() - privateKey := config.Read().PrivateKeyPath + privateKey := config.ReadConfig().PrivateKeyPath if !m.signup && privateKey != "" { m.fields[privateKeyField].Input.SetValue(privateKey) } @@ -544,7 +544,7 @@ func (m *Model) signin() tea.Cmd { } if m.remember { - _ = config.Use(func(config *config.Config) { + _ = config.UseConfig(func(config *config.Config) { config.PrivateKeyPath = privateKeyFilepath }) } -- cgit v1.3.1