Browse Source

Updating checkbox caption to "Credentials from AWS environment" to reflect Bug 2089

Source commit: 91401dc9ea1fa896f6615affdc87699b95adfe72
Martin Prikryl 2 years ago
parent
commit
842b951de4
3 changed files with 11 additions and 11 deletions
  1. 6 6
      source/forms/Login.cpp
  2. 3 3
      source/forms/Login.dfm
  3. 2 2
      source/forms/Login.h

+ 6 - 6
source/forms/Login.cpp

@@ -555,7 +555,7 @@ void __fastcall TLoginDialog::LoadSession(TSessionData * SessionData)
           UnicodeString::StringOfChar(L'?', 16) : UnicodeString();
     }
 
-    S3CredentialsEnvCheck2->Checked = SessionData->S3CredentialsEnv;
+    S3CredentialsEnvCheck3->Checked = SessionData->S3CredentialsEnv;
     S3ProfileCombo->Text = DefaultStr(SessionData->S3Profile, GetS3GeneralName());
     UpdateS3Credentials();
 
@@ -606,7 +606,7 @@ void __fastcall TLoginDialog::SaveSession(TSessionData * SessionData)
 
   if (SessionData->FSProtocol == fsS3)
   {
-    SessionData->S3CredentialsEnv = S3CredentialsEnvCheck2->Checked;
+    SessionData->S3CredentialsEnv = S3CredentialsEnvCheck3->Checked;
     SessionData->S3Profile = GetS3Profile();
   }
 
@@ -714,7 +714,7 @@ void __fastcall TLoginDialog::UpdateControls()
     ReadOnlyControl(PortNumberEdit, !Editable);
     PortNumberEdit->ButtonsVisible = Editable;
     // FSessionData may be NULL temporary even when Editable while switching nodes
-    bool S3CredentialsEnv = S3Protocol && S3CredentialsEnvCheck2->Checked;
+    bool S3CredentialsEnv = S3Protocol && S3CredentialsEnvCheck3->Checked;
     bool NoAuth =
       Editable && (FSessionData != NULL) &&
       ((SshProtocol && FSessionData->SshNoUserAuth) ||
@@ -2206,7 +2206,7 @@ int __fastcall TLoginDialog::DefaultPort()
 //---------------------------------------------------------------------------
 void TLoginDialog::UpdateS3Credentials()
 {
-  if (S3CredentialsEnvCheck2->Checked)
+  if (S3CredentialsEnvCheck3->Checked)
   {
     UnicodeString S3Profile = GetS3Profile();
     UserNameEdit->Text = S3EnvUserName(S3Profile);
@@ -2264,7 +2264,7 @@ void __fastcall TLoginDialog::TransferProtocolComboChange(TObject * Sender)
       }
     }
 
-    S3CredentialsEnvCheck2->Checked = false;
+    S3CredentialsEnvCheck3->Checked = false;
   }
 
   UpdatePortWithProtocol();
@@ -3308,7 +3308,7 @@ void __fastcall TLoginDialog::PanelMouseDown(TObject *, TMouseButton, TShiftStat
   CountClicksForWindowPrint(this);
 }
 //---------------------------------------------------------------------------
-void __fastcall TLoginDialog::S3CredentialsEnvCheck2Click(TObject *)
+void __fastcall TLoginDialog::S3CredentialsEnvCheck3Click(TObject *)
 {
   UpdateS3Credentials();
   UpdateControls();

+ 3 - 3
source/forms/Login.dfm

@@ -169,15 +169,15 @@ object LoginDialog: TLoginDialog
           DesignSize = (
             324
             31)
-          object S3CredentialsEnvCheck2: TCheckBox
+          object S3CredentialsEnvCheck3: TCheckBox
             Left = 0
             Top = 2
             Width = 324
             Height = 17
             Anchors = [akLeft, akTop, akRight]
-            Caption = '&Credentials from AWS CLI:'
+            Caption = '&Credentials from AWS environment:'
             TabOrder = 0
-            OnClick = S3CredentialsEnvCheck2Click
+            OnClick = S3CredentialsEnvCheck3Click
           end
           object S3ProfileCombo: TComboBox
             Left = 200

+ 2 - 2
source/forms/Login.h

@@ -210,7 +210,7 @@ __published:
   TPanel *ShowAgainPanel;
   TCheckBox *ShowAgainCheck;
   TPanel *BasicS3Panel;
-  TCheckBox *S3CredentialsEnvCheck2;
+  TCheckBox *S3CredentialsEnvCheck3;
   TMenuItem *OpeninPuTTY4;
   TComboBox *S3ProfileCombo;
   void __fastcall DataChange(TObject *Sender);
@@ -290,7 +290,7 @@ __published:
   void __fastcall SearchSiteNameActionExecute(TObject *Sender);
   void __fastcall SearchSiteActionExecute(TObject *Sender);
   void __fastcall PanelMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
-  void __fastcall S3CredentialsEnvCheck2Click(TObject *Sender);
+  void __fastcall S3CredentialsEnvCheck3Click(TObject *Sender);
   void __fastcall EncryptionComboChange(TObject *Sender);
   void __fastcall S3ProfileComboChange(TObject *Sender);