summaryrefslogtreecommitdiff
path: root/Userland/Applications/SystemMonitor/ProcessStateWidget.cpp
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-02-18 05:49:37 -0500
committerAndreas Kling <kling@serenityos.org>2022-02-18 13:10:37 +0100
commit0e56dd491767db4146b3a9e07a393cfda738a91c (patch)
tree43d7fbb8904a9d9e0d7b0cb5225d61a09a363a1e /Userland/Applications/SystemMonitor/ProcessStateWidget.cpp
parent4daa5622fe8e2557081677ed6e886ebda331a93f (diff)
downloadserenity-0e56dd491767db4146b3a9e07a393cfda738a91c.zip
SystemMonitor: Don't invalidate ProcessStateModel on refresh
The model has a fixed number of rows based on the column enum and shouldn't need to be invalidated every update.
Diffstat (limited to 'Userland/Applications/SystemMonitor/ProcessStateWidget.cpp')
-rw-r--r--Userland/Applications/SystemMonitor/ProcessStateWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/SystemMonitor/ProcessStateWidget.cpp b/Userland/Applications/SystemMonitor/ProcessStateWidget.cpp
index e80e6f9f43..41f20aa08d 100644
--- a/Userland/Applications/SystemMonitor/ProcessStateWidget.cpp
+++ b/Userland/Applications/SystemMonitor/ProcessStateWidget.cpp
@@ -72,7 +72,7 @@ public:
break;
}
}
- invalidate();
+ did_update(GUI::Model::UpdateFlag::DontInvalidateIndices);
}
private: