Fix the bug that has been bugging me for months

Finally got the little shit :D
This commit is contained in:
2023-12-16 19:41:57 +01:00
parent fb57b0bdc6
commit 7d9cfe9557

View File

@ -167,6 +167,7 @@ pub async fn keypress_handler(
let position_in_queue = queue let position_in_queue = queue
.iter() .iter()
.enumerate() .enumerate()
.filter(|(_, queued)| queued.source_half == event.source)
.find(|(_, queued)| queued.source_button == event.source_button) .find(|(_, queued)| queued.source_button == event.source_button)
.map(|(i, _)| i); .map(|(i, _)| i);