mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-19 11:01:30 +00:00
MacOSX: fix truncated algorithms description in the Encryption Options page of the volume creation wizard, which happened after moving to wxWidgets 3.1.2
This commit is contained in:
@@ -24,6 +24,9 @@ namespace VeraCrypt
|
||||
: EncryptionOptionsWizardPageBase (parent)
|
||||
{
|
||||
|
||||
#ifdef TC_MACOSX
|
||||
EncryptionAlgorithmStaticText->Connect( wxEVT_SIZE, wxSizeEventHandler( EncryptionOptionsWizardPage::HandleOnSize ), NULL, this );
|
||||
#endif
|
||||
EncryptionAlgorithms = EncryptionAlgorithm::GetAvailableAlgorithms();
|
||||
foreach (shared_ptr <EncryptionAlgorithm> ea, EncryptionAlgorithms)
|
||||
{
|
||||
@@ -45,6 +48,21 @@ namespace VeraCrypt
|
||||
|
||||
}
|
||||
|
||||
#ifdef TC_MACOSX
|
||||
EncryptionOptionsWizardPage::~EncryptionOptionsWizardPage()
|
||||
{
|
||||
EncryptionAlgorithmStaticText->Disconnect( wxEVT_SIZE, wxSizeEventHandler( EncryptionOptionsWizardPage::HandleOnSize ), NULL, this );
|
||||
}
|
||||
|
||||
void EncryptionOptionsWizardPage::HandleOnSize( wxSizeEvent& event )
|
||||
{
|
||||
int width, height;
|
||||
EncryptionAlgorithmStaticText->GetClientSize (&width, &height);
|
||||
EncryptionAlgorithmStaticText->Wrap (width);
|
||||
event.Skip();
|
||||
}
|
||||
#endif
|
||||
|
||||
shared_ptr <EncryptionAlgorithm> EncryptionOptionsWizardPage::GetEncryptionAlgorithm () const
|
||||
{
|
||||
return Gui->GetSelectedData <EncryptionAlgorithm> (EncryptionAlgorithmChoice)->GetNew();
|
||||
|
||||
Reference in New Issue
Block a user