Skip to content

Commit

Permalink
Fix keybind storage (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrarier2111 authored Mar 9, 2024
1 parent ebf134d commit b6af357
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/settings/keybinds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ impl KeybindStore {
);
}
}
if let Err(err) = write!(file, "{} {:?}\n\n", keybind.name, key.clone()) {
if let Err(err) = write!(
file,
"{} {}\n\n",
keybind.name,
serde_json::to_string(&key).unwrap()
) {
warn!(
"couldnt write a keybind to config file {err}, {}",
keybind.name
Expand Down

0 comments on commit b6af357

Please sign in to comment.