NMitchell24 / CraftingCalculator

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

Incorrect Recipes can get added to calculation #26

Open NMitchell24 opened 2 years ago

NMitchell24 commented 2 years ago

Describe the bug If you scroll far down in the Recipe list and select an item, then previously selected items up at the top do not get cleared from your selected item. This can cause you to add a recipe that you did not intend to add

To Reproduce Steps to reproduce the behavior:

  1. Open Crafting Calculator in a new instance.
  2. Note that Ablative Armor is selected by default in the Recipes list.
  3. Scroll to the bottom of the Recipes list using the scroll bar
  4. Select the very last recipe then click on Add.
  5. Note that the last recipe as well as the Ablative Armor recipe are added to the list.

Expected behavior When you do not use 'CTRL' to select multiples, then selecting a new item should clear any previous selections.

Additional context This only happens when you scroll a decent distance in the list, and does not appear to happen every time. It may be specifically related to the default selection in the list being set. Possibly removing the default selection will fix it?