Просмотр исходного кода

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 лет назад
Родитель
Сommit
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: