Browse Source

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.
thankyouverycool 3 years ago
parent
commit
0e56dd4917
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Applications/SystemMonitor/ProcessStateWidget.cpp

+ 1 - 1
Userland/Applications/SystemMonitor/ProcessStateWidget.cpp

@@ -72,7 +72,7 @@ public:
                 break;
             }
         }
-        invalidate();
+        did_update(GUI::Model::UpdateFlag::DontInvalidateIndices);
     }
 
 private: