mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-25 05:51:34 +00:00
Use Pim name for internal variables instead of the old name Pin
This commit is contained in:
@@ -33,12 +33,12 @@ namespace VeraCrypt
|
||||
{
|
||||
if (VolumePimTextCtrl->IsEnabled ())
|
||||
{
|
||||
wxString pinStr (VolumePimTextCtrl->GetValue());
|
||||
long pin = 0;
|
||||
if (pinStr.IsEmpty())
|
||||
wxString pimStr (VolumePimTextCtrl->GetValue());
|
||||
long pim = 0;
|
||||
if (pimStr.IsEmpty())
|
||||
return 0;
|
||||
if (pinStr.ToLong (&pin))
|
||||
return (int) pin;
|
||||
if (pimStr.ToLong (&pim))
|
||||
return (int) pim;
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
@@ -55,13 +55,13 @@ namespace VeraCrypt
|
||||
{
|
||||
if (GetVolumePim() != 0)
|
||||
{
|
||||
VolumePinHelpStaticText->SetForegroundColour(*wxRED);
|
||||
VolumePinHelpStaticText->SetLabel(LangString["PIM_CHANGE_WARNING"]);
|
||||
VolumePimHelpStaticText->SetForegroundColour(*wxRED);
|
||||
VolumePimHelpStaticText->SetLabel(LangString["PIM_CHANGE_WARNING"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
VolumePinHelpStaticText->SetForegroundColour(*wxBLACK);
|
||||
VolumePinHelpStaticText->SetLabel(LangString["IDC_PIM_HELP"]);
|
||||
VolumePimHelpStaticText->SetForegroundColour(*wxBLACK);
|
||||
VolumePimHelpStaticText->SetLabel(LangString["IDC_PIM_HELP"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user