mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-23 04:51:32 +00:00
Linux/MacOSX: add progress bar for mouse collected entropy in GUI of volume creation wizard. Add mutex protection in event handler for shared counter variable
This commit is contained in:
@@ -39,7 +39,7 @@ namespace VeraCrypt
|
||||
VolumeCreationWizard::VolumeCreationWizard (wxWindow* parent)
|
||||
: WizardFrame (parent),
|
||||
CrossPlatformSupport (true),
|
||||
DisplayKeyInfo (true),
|
||||
DisplayKeyInfo (false),
|
||||
LargeFilesSupport (false),
|
||||
QuickFormatEnabled (false),
|
||||
SelectedFilesystemClusterSize (0),
|
||||
@@ -378,6 +378,12 @@ namespace VeraCrypt
|
||||
RandomNumberGenerator::AddToPool (ConstBufferPtr (reinterpret_cast <byte *> (&coord), sizeof (coord)));
|
||||
coord = event.GetY();
|
||||
RandomNumberGenerator::AddToPool (ConstBufferPtr (reinterpret_cast <byte *> (&coord), sizeof (coord)));
|
||||
|
||||
VolumeCreationProgressWizardPage *page = dynamic_cast <VolumeCreationProgressWizardPage *> (GetCurrentPage());
|
||||
if (page)
|
||||
{
|
||||
page->IncrementEntropyProgress ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user