1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

SystemMonitor: Add a status bar to the main window

To get us started, this shows the number of processes and threads in
the last captured state.
This commit is contained in:
Andreas Kling 2021-04-04 20:46:46 +02:00
parent 1e912fb5a1
commit 0f7443f010
3 changed files with 15 additions and 3 deletions

View file

@ -429,6 +429,9 @@ void ProcessModel::update()
if (on_cpu_info_change)
on_cpu_info_change(m_cpus);
if (on_state_update)
on_state_update(all_processes->size(), m_threads.size());
// FIXME: This is a rather hackish way of invalidating indexes.
// It would be good if GUI::Model had a way to orchestrate removal/insertion while preserving indexes.
did_update(previous_tid_count == m_tids.size() ? GUI::Model::UpdateFlag::DontInvalidateIndexes : GUI::Model::UpdateFlag::InvalidateAllIndexes);