Fix panic in gamepad_viewer
example when gamepad is connected (#15854)
# Objective Fixes #15832 ## Solution It seems that this was just a transliteration mistake during #15591. Update the correct text span index. ## Testing I tested on macos with: `cargo run --example gamepad_viewer` - without gamepad connected - with gamepad connected - disconnecting and reconnecting gamepad while running
This commit is contained in:
parent
7f24c27645
commit
cdd71afde5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user