diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/hotkey_overlay.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/hotkey_overlay.rs b/src/ui/hotkey_overlay.rs index 1430a9d6..7042d2c0 100644 --- a/src/ui/hotkey_overlay.rs +++ b/src/ui/hotkey_overlay.rs @@ -285,6 +285,11 @@ fn render( } } + if config.hotkey_overlay.hide_not_bound { + // Only keep actions that have been bound + actions.retain(|&action| binds.iter().any(|bind| bind.action == *action)) + } + let strings = actions .into_iter() .filter_map(|action| format_bind(binds, mod_key, action)) |
