Skip to content

Commit d644a82

Browse files
committed
Unswap if condition causing a panic
1 parent a3f12cc commit d644a82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/desktop/src/ui/config_editor/input_map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ impl Editor {
167167
width: f32,
168168
) {
169169
let trigger = if selection.1 {
170-
global_trigger(selection.0, input_map)
171-
} else {
172170
game_trigger(selection.0, input_map).unwrap()
171+
} else {
172+
global_trigger(selection.0, input_map)
173173
};
174174

175175
let _button_color = (!self.state.is_manually_changing()

0 commit comments

Comments
 (0)