From 61d7f8f90928485af28a7f265067d4be4ed4df5b Mon Sep 17 00:00:00 2001 From: Maxime Gervais Date: Fri, 4 Oct 2024 11:40:38 +0200 Subject: [PATCH] Generate MD5 in separate thread Signed-off-by: Maxime Gervais --- Source/GUI/Qt/GUI_Main_Menu.cpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/Source/GUI/Qt/GUI_Main_Menu.cpp b/Source/GUI/Qt/GUI_Main_Menu.cpp index 7b6faec7..39e3ac32 100644 --- a/Source/GUI/Qt/GUI_Main_Menu.cpp +++ b/Source/GUI/Qt/GUI_Main_Menu.cpp @@ -1352,21 +1352,9 @@ void GUI_Main::OnMenu_Options_GenerateMD5(bool) case QMessageBox::Yes : // Yes was clicked C->GenerateMD5=true; C->Menu_File_Options_Update(); - C->Menu_File_Open_Files_Finish(); //TODO: progress bar - if (C->GenerateMD5==false) - { - Menu_Fields_CheckBoxes[Group_MD5*options::MaxCount+Option_MD5_Embed]->setChecked(false); - //OnMenu_Options_EmbedMD5(); - } - - //Showing - if (C->Text_stderr_Updated_Get()) - { - Menu_View_Output_stderr->setChecked(true); - View_Refresh(View_Output_stderr); - } - else - View_Refresh(); + Open_Timer_Init(Timer_Open_Files); + C->Menu_File_Open_Files_Finish_Start(); + C->Menu_File_Open_Files_Finish_Middle_Threaded(); break; case QMessageBox::No : // No was clicked C->GenerateMD5=true;