1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

SystemMonitor: Save configuration of columns

Save the columns configuration from the last run in the respective
config file, and add a function to check whether a column should be
visible by default.
This commit is contained in:
Orel 2022-08-30 15:25:11 +03:00 committed by Sam Atkins
parent 290920222a
commit d8474805e8
3 changed files with 32 additions and 10 deletions

View file

@ -71,6 +71,7 @@ public:
virtual Vector<GUI::ModelIndex> matches(StringView, unsigned = MatchesFlag::AllMatching, GUI::ModelIndex const& = GUI::ModelIndex()) override;
virtual bool is_column_sortable(int column_index) const override { return column_index != Column::Icon; }
void update();
bool is_default_column(int index) const;
struct CpuInfo {
u32 id;