Skip to content

Commit

Permalink
Fix panic in gamepad_viewer example when gamepad is connected
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Oct 11, 2024
1 parent aa5e93d commit 7b54b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tools/gamepad_viewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ fn update_connected(
.collect::<Vec<_>>()
.join("\n");

*writer.text(query.single(), 2) = if !formatted.is_empty() {
*writer.text(query.single(), 1) = if !formatted.is_empty() {
formatted
} else {
"None".to_string()
Expand Down

0 comments on commit 7b54b2f

Please sign in to comment.