Skip to content

Commit

Permalink
Merge pull request #302 from g-maxime/progress
Browse files Browse the repository at this point in the history
Generate MD5 in separate thread
  • Loading branch information
g-maxime authored Oct 29, 2024
2 parents a31c9af + 61d7f8f commit af8c837
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions Source/GUI/Qt/GUI_Main_Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit af8c837

Please sign in to comment.