NMitchell24 / CraftingCalculator

Simple Crafting Calculator for Survival Crafting Games
GNU General Public License v2.0
3 stars 1 forks source link

Selected recipe not getting reset #3

Closed NMitchell24 closed 5 years ago

NMitchell24 commented 5 years ago

Only happens under a certain scenario.

  1. Make sure Filter is set to All
  2. Select any recipe on the screen.
  3. Click Add to add the recipe.
  4. Click Add a second time
  5. This increases recipe quantity by 1 and is intended behavior.
  6. Scroll down so that the original recipe you selected is no longer visible.
  7. Select another recipe.
  8. Click Add
  9. Note that the new recipe is added, but the quantity of the original recipe is also increased by 1
  10. Scroll up and note that the original recipe is still selected.
NMitchell24 commented 5 years ago

It appears that this is an issue with the ListBox control. To work around it I have added some logic which clears the selected recipe(s) after you click Add.