浏览代码

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 年之前
父节点
当前提交
0e56dd4917
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: