1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +00:00

CrashReporter: Show coredump loading progress in the Taskbar :^)

This commit is contained in:
Andreas Kling 2021-09-21 20:51:27 +02:00
parent f6f9599899
commit 9d7fe39640

View file

@ -68,6 +68,7 @@ static TitleAndText build_backtrace(Coredump::Reader const& coredump, ELF::Core:
auto timer = Core::ElapsedTimer::start_new();
Coredump::Backtrace backtrace(coredump, thread_info, [&](size_t frame_index, size_t frame_count) {
progress_window->set_progress(100.0f * (float)(frame_index + 1) / (float)frame_count);
progressbar.set_value(frame_index + 1);
progressbar.set_max(frame_count);
Core::EventLoop::current().pump(Core::EventLoop::WaitMode::PollForEvents);