mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-14 01:04:38 +03:00
SystemMonitor: Make ProcessModel icon column non-sortable
Sorting by icon is neither intuitive nor useful, so let's disable it (like in GUI::FileSystemModel).
This commit is contained in:
parent
5ee9aab7e1
commit
067b880459
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
@ -61,6 +61,7 @@ public:
|
||||
virtual String column_name(int column) const override;
|
||||
virtual GUI::Variant data(const GUI::ModelIndex&, GUI::ModelRole) const override;
|
||||
virtual void update() override;
|
||||
virtual bool is_column_sortable(int column_index) const override { return column_index != Column::Icon; }
|
||||
|
||||
struct CpuInfo {
|
||||
u32 id;
|
||||
|
Loading…
Reference in New Issue
Block a user