support icon indicating copy to clipboard operation
support copied to clipboard

[Bug] Block undo operation can delete device block

Open laurensvalk opened this issue 1 year ago • 4 comments

Describe the bug

Undoing a change in device type can leave a device getter without a block:

image

To reproduce TBD. Most likely, select one device (Color Distance Sensor), change the measurement read to another device (Color Sensor), and then delete the color sensor setup block so it no longer exists. Then try to undo things.

laurensvalk avatar Feb 08 '24 12:02 laurensvalk

Is this the situation you meant after some redo's? afbeelding

I noticed that undo [CTRL-Z} allows more steps than redo [CTRL-Y]. As designed?

BertLindeman avatar Feb 08 '24 15:02 BertLindeman

The situation above is easily fixed by changing the dropdown.

In the original screenshot the whole dropdown is missing.

laurensvalk avatar Feb 08 '24 15:02 laurensvalk

Ah, I will retry.

BertLindeman avatar Feb 08 '24 15:02 BertLindeman

Don't worry, thanks for helping!

I know what's broken. This is just the to-do note to fix it :smile:

laurensvalk avatar Feb 08 '24 16:02 laurensvalk