Fix 'configure another shelf' looping back to main menu
When configure_shelf() returned True the outer while loop re-displayed the main menu instead of starting the next shelf cycle immediately. Now loops directly back into configure_shelf() until the user declines. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -40,9 +40,9 @@ def main():
|
|||||||
|
|
||||||
choice = prompt("Select [1/2/3/4]")
|
choice = prompt("Select [1/2/3/4]")
|
||||||
if choice == "1":
|
if choice == "1":
|
||||||
another = configure_shelf()
|
another = True
|
||||||
if not another:
|
while another:
|
||||||
break
|
another = configure_shelf()
|
||||||
elif choice == "2":
|
elif choice == "2":
|
||||||
firmware_update_workflow()
|
firmware_update_workflow()
|
||||||
elif choice == "3":
|
elif choice == "3":
|
||||||
|
|||||||
Reference in New Issue
Block a user