summaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2021-02-19 01:02:21 -0500
committerGitHub <noreply@github.com>2021-02-19 01:02:21 -0500
commite6c9187928d49b796b7d8a2302c057e229d68805 (patch)
treea938a1ac19cfac23e5a7b4deabf765df2adcf61a /src/app
parente6230ef156efe907f2cf76af4298a7e34df330b4 (diff)
bug: Fix sorting menu and sort shortcuts not syncing in gui (#417)
Fixes sorting menus and shortcuts not syncing correctly if the sorting window is open.
Diffstat (limited to 'src/app')
-rw-r--r--src/app/states.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/states.rs b/src/app/states.rs
index 37fbd8d1..c2853337 100644
--- a/src/app/states.rs
+++ b/src/app/states.rs
@@ -507,7 +507,9 @@ impl ProcWidgetState {
// Also invert anything that uses alphabetical sorting by default.
self.is_process_sort_descending = false;
}
- _ => {}
+ _ => {
+ self.is_process_sort_descending = true;
+ }
}
}
}