shpaass/yafc-ce

[Discussion] Unlink an item if the only recipe that produced it was deleted

Opened this issue · 3 comments

I often delete a part of the sheet because I've built that part and will not touch it until the next tech.
The problem is that deleting requires two steps: deleting the row with the recipe, and then unlinking the item, so it stops being red.

My idea is to automatically unlink the item in a row if it was not linked to anything else.

For more clarity, here's an example from pY:
I build the production of Automation Science. I'm done with the stone, so I delete the part that produces stone. However, the stone icon is still red because the stone is now linked but the demand is not satisfied. Therefore, I have to unlink it. (I want to get rid of the part written in italic)

What do you guys think? Maybe I'm wrong, and the still-linked behavior is preferable later?

Dorus commented

I'm mixed here. More often than not, the missing link warning shows me i removed the wrong recipe. But then there's also that case where i did remove the right recipe and want to link to go with it.

Dorus commented

What about making this a new setting?

I'm not against it. It's just that it's more work. If someone is willing to do it as a setting, then sure, go ahead.