ScanInput callback is called multiple times #147
Labels
No labels
bug
documentation
duplicate
enhancement
Feature Request
good first issue
help wanted
improvement
in progress
invalid
nag
Priority: High
Priority: Low
Priority: Medium
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Strichliste/strichliste#147
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After the merge of #139, particularly at https://github.com/strichliste-rs/strichliste-rs/pull/139/files#diff-fb748d4eef48d0e31b49d1cad1e952bb5678d24a204b703946049a530c049777L112-L127 , the scan input callback get's triggered multiple times.
I don't know why, but it seems like the scan_input get's registered multiple times:
In
scan_input.rsConsole output
debug info in branch: 147-scaninput-callback-is-called-multiple-times
This seems to indeed be the problem
I don't really see how this is caused. Why is only the user barcode handles not getting removed?
As a fix, we could create a new store with the current window handle as it's value, since we only need a single scan_input at the same time.