Skip to content

Commit

Permalink
Remove whitespace at the end of a line (#2152)
Browse files Browse the repository at this point in the history
Signed-off-by: Yxnt <[email protected]>
  • Loading branch information
Yxnt authored Jun 19, 2024
1 parent 61bc092 commit c347a4c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions client/ui/client_ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,21 +281,24 @@ func (s *serviceClient) getSettingsForm() *widget.Form {
return
}

iAdminURL := strings.TrimSpace(s.iAdminURL.Text)
iMngURL := strings.TrimSpace(s.iMngURL.Text)

defer s.wSettings.Close()

// If the management URL, pre-shared key, admin URL, Rosenpass permissive mode,
// interface name, or interface port have changed, we attempt to re-login with the new settings.
if s.managementURL != s.iMngURL.Text || s.preSharedKey != s.iPreSharedKey.Text ||
s.adminURL != s.iAdminURL.Text || s.RosenpassPermissive != s.sRosenpassPermissive.Checked ||
if s.managementURL != iMngURL || s.preSharedKey != s.iPreSharedKey.Text ||
s.adminURL != iAdminURL || s.RosenpassPermissive != s.sRosenpassPermissive.Checked ||
s.interfaceName != s.iInterfaceName.Text || s.interfacePort != int(port) {

s.managementURL = s.iMngURL.Text
s.managementURL = iMngURL
s.preSharedKey = s.iPreSharedKey.Text
s.adminURL = s.iAdminURL.Text
s.adminURL = iAdminURL

loginRequest := proto.LoginRequest{
ManagementUrl: s.iMngURL.Text,
AdminURL: s.iAdminURL.Text,
ManagementUrl: iMngURL,
AdminURL: iAdminURL,
IsLinuxDesktopClient: runtime.GOOS == "linux",
RosenpassPermissive: &s.sRosenpassPermissive.Checked,
InterfaceName: &s.iInterfaceName.Text,
Expand Down

0 comments on commit c347a4c

Please sign in to comment.