mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
fix all available options not being displayed in led-mode help
This commit is contained in:
+1
-1
@@ -355,7 +355,7 @@ fn handle_led_mode(
|
||||
let commands: Vec<String> = cmdlist.lines().map(|s| s.to_string()).collect();
|
||||
for command in commands.iter().filter(|command| {
|
||||
for mode in &supported.stock_led_modes {
|
||||
if command.contains(&<&str>::from(mode).to_lowercase()) {
|
||||
if command.trim().starts_with(&<&str>::from(mode).to_lowercase()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user