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:
parent
f6f9599899
commit
9d7fe39640
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue