chore(keyboard): remove eprintln logs

This commit is contained in:
Michael Aaron Murphy 2025-06-19 16:11:41 +02:00
parent 1d3b6d061c
commit e2049df678
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -387,30 +387,21 @@ impl Model {
}
ShortcutMessage::DeleteBinding(id) => {
eprintln!("delete shortcut");
if let Some(short_id) = self.shortcut_context {
if let Some(model) = self.shortcut_models.get_mut(short_id) {
let shortcut = model.bindings.remove(id);
if shortcut.is_default {
eprintln!("disabling {shortcut:?}");
self.config_add(Action::Disable, shortcut.binding.clone());
} else {
eprintln!("removing {shortcut:?}");
self.config_remove(&shortcut.binding);
}
} else {
eprintln!("no shortcut model found");
}
} else {
eprintln!("no shortcut context");
}
}
ShortcutMessage::DeleteShortcut(id) => {
eprintln!("deleting shortcut");
let model = self.shortcut_models.remove(id);
for (_, shortcut) in model.bindings {
eprintln!("removing shortcut {shortcut:?}");
self.config_remove(&shortcut.binding);
}
}