mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux/MacOSX: Implement waiting dialog for lengthy operations in order to have a better user experience.
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "VolumeLocationWizardPage.h"
|
||||
#include "VolumePasswordWizardPage.h"
|
||||
#include "VolumeSizeWizardPage.h"
|
||||
#include "WaitDialog.h"
|
||||
|
||||
namespace VeraCrypt
|
||||
{
|
||||
@@ -865,7 +866,9 @@ namespace VeraCrypt
|
||||
options->VolumeHeaderKdf = Pkcs5Kdf::GetAlgorithm (*SelectedHash);
|
||||
|
||||
Creator.reset (new VolumeCreator);
|
||||
Creator->CreateVolume (options);
|
||||
VolumeCreatorThreadRoutine routine(options, Creator);
|
||||
WaitDialog dlg(this, LangString["IDT_STATIC_MODAL_WAIT_DLG_INFO"], &routine);
|
||||
dlg.Run();
|
||||
|
||||
page->SetKeyInfo (Creator->GetKeyInfo());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user