From 4df7940374f21c5a7b697e54b7394e15515fb86a Mon Sep 17 00:00:00 2001 From: Hakan Sariman Date: Tue, 5 Aug 2025 18:05:50 +0300 Subject: [PATCH] [client] Update profile display to include email if available --- client/ui/client_ui.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/client/ui/client_ui.go b/client/ui/client_ui.go index 88cb11eab..1aa76ee7f 100644 --- a/client/ui/client_ui.go +++ b/client/ui/client_ui.go @@ -424,15 +424,28 @@ func (s *serviceClient) showSettingsUI() { func (s *serviceClient) getSettingsForm() *widget.Form { var activeProfName string + var activeProfEmail string activeProf, err := s.profileManager.GetActiveProfile() if err != nil { log.Errorf("get active profile: %v", err) } else { activeProfName = activeProf.Name + // Try to get email from profile state + profileState, err := s.profileManager.GetProfileState(activeProf.Name) + if err == nil && profileState.Email != "" { + activeProfEmail = profileState.Email + } } + + // Create profile display with email if available + profileDisplay := activeProfName + if activeProfEmail != "" { + profileDisplay = fmt.Sprintf("%s (%s)", activeProfName, activeProfEmail) + } + return &widget.Form{ Items: []*widget.FormItem{ - {Text: "Profile", Widget: widget.NewLabel(activeProfName)}, + {Text: "Profile", Widget: widget.NewLabel(profileDisplay)}, {Text: "Quantum-Resistance", Widget: s.sRosenpassPermissive}, {Text: "Interface Name", Widget: s.iInterfaceName}, {Text: "Interface Port", Widget: s.iInterfacePort},