mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-19 06:07:09 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user