mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:18:12 +00:00
HackStudio: Add progress bar to Debugger initialization
During Debugger initialization, most of the time is spent creating DebugInfo objects for the libraries that the program has loaded.
This commit is contained in:
parent
0896c03744
commit
6e5b1f5819
5 changed files with 39 additions and 16 deletions
|
@ -1090,6 +1090,10 @@ void HackStudioWidget::initialize_debugger()
|
|||
GUI::MessageBox::show(window(), "Program Exited"sv, "Debugger"sv, GUI::MessageBox::Type::Information);
|
||||
});
|
||||
GUI::Application::the()->event_loop().wake();
|
||||
},
|
||||
[this](float progress) {
|
||||
if (GUI::Application::the()->active_window())
|
||||
GUI::Application::the()->active_window()->set_progress(progress * 100);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue