summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-21 20:51:27 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-21 20:52:29 +0200
commit9d7fe396407c33cb871cddc7389c97f0399e3f89 (patch)
tree75f3d78a0d51948aa10e89a425063253165807b5 /Userland
parentf6f9599899359aa05d3b8b60e1de69b6dd1d56fd (diff)
downloadserenity-9d7fe396407c33cb871cddc7389c97f0399e3f89.zip
CrashReporter: Show coredump loading progress in the Taskbar :^)
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/CrashReporter/main.cpp1
1 files changed, 1 insertions, 0 deletions
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);