Skip to content

Commit

Permalink
Don't update progress message during cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Jul 26, 2023
1 parent 9f8c8aa commit 2960a6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/progressinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ ProgressWindow::ProgressWindow(wxWindow *parent, const wxString& title, dispatch

void ProgressWindow::update_message(const wxString& text)
{
if (m_cancellationToken && m_cancellationToken->is_cancelled())
return;

dispatch::on_main([=]
{
m_message->SetLabel(text);
Expand Down

0 comments on commit 2960a6f

Please sign in to comment.