From 9d7fe396407c33cb871cddc7389c97f0399e3f89 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 21 Sep 2021 20:51:27 +0200 Subject: [PATCH] CrashReporter: Show coredump loading progress in the Taskbar :^) --- Userland/Applications/CrashReporter/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Applications/CrashReporter/main.cpp b/Userland/Applications/CrashReporter/main.cpp index f9a192ce01..ddd72af2e2 100644 --- a/Userland/Applications/CrashReporter/main.cpp +++ b/Userland/Applications/CrashReporter/main.cpp @@ -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);