Skip to content

Commit

Permalink
Also unblock the main window when unblocking the UI updates
Browse files Browse the repository at this point in the history
closes #402
  • Loading branch information
stefankueng committed Jan 27, 2025
1 parent 1c71cf5 commit 6ddae6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4823,6 +4823,7 @@ void CMainWindow::BlockAllUIUpdates(bool block)
// unblock
for (auto window : windows)
SendMessage(window, WM_SETREDRAW, TRUE, 0);
SendMessage(*this, WM_SETREDRAW, TRUE, 0);
// force a redraw
RedrawWindow(*this, nullptr, nullptr, RDW_INVALIDATE | RDW_ERASE | RDW_INTERNALPAINT | RDW_ALLCHILDREN | RDW_UPDATENOW);
}
Expand Down

0 comments on commit 6ddae6e

Please sign in to comment.