diff options
author | Ghostkeeper <rubend@tutanota.com> | 2021-10-27 15:06:04 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2021-10-27 15:06:04 +0300 |
commit | 116046a8b2a90b3e71ad0522831b0e23438c0065 (patch) | |
tree | 106bcc69db0425bf991df883916e9224fad5060e /cura/Machines | |
parent | f99fedc58b28d2c94dca3afb7ce1cf413c1cb01a (diff) |
Fix binding printer_id to response callbacks
With the lambda it would capture the variable of printer_id. It wouldn't actually store the value of printer_id in teh created lambda. As a result, it was using the current value of printer_id when the lambda executes, rather than the value of printer_id when the lambda is constructed. A bit weird how that works in Python's lambdas.
With partial functions it works properly.
Contributes to issue CURA-8609.
Diffstat (limited to 'cura/Machines')
0 files changed, 0 insertions, 0 deletions