When it occurs:
Issue occurs when selecting a name for a new preset. The selected name is checked against the set of presetNames in a loop to make sure that user selects a unique name. The loop breaks when breakLoop is set to true, however breakLoop also controls the main preset maker loop. Hence, when a user selects a unique name the shortcut makes the preset and exits immediately, instead of returning back to the menu to allow users to select foods.
When it occurs: Issue occurs when selecting a name for a new preset. The selected name is checked against the set of presetNames in a loop to make sure that user selects a unique name. The loop breaks when
breakLoop
is set to true, howeverbreakLoop
also controls the main preset maker loop. Hence, when a user selects a unique name the shortcut makes the preset and exits immediately, instead of returning back to the menu to allow users to select foods.