diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-09-02 22:02:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 22:02:49 -0400 |
commit | cef3166cf87d0a769fb886049b9bf1e5faf75e32 (patch) | |
tree | f54fab112ed2ed18d39af1baaa15ede155de0c5a /src/canvas.rs | |
parent | a94907372839c7fd79bbd0e37d9cab8ccfa40790 (diff) |
feature: Add ability to filter out disks and temp (#220)
You can now filter out disks and temp sensors by name via config.
Diffstat (limited to 'src/canvas.rs')
-rw-r--r-- | src/canvas.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/canvas.rs b/src/canvas.rs index 7036bd49..61f74e4f 100644 --- a/src/canvas.rs +++ b/src/canvas.rs @@ -379,9 +379,9 @@ impl Painter { app_state.current_widget.widget_id, false, ), - proc_type @ Proc | proc_type @ ProcSearch | proc_type @ ProcSort => { + Proc | ProcSearch | ProcSort => { let widget_id = app_state.current_widget.widget_id - - match proc_type { + - match &app_state.current_widget.widget_type { ProcSearch => 1, ProcSort => 2, _ => 0, |