We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The index of the currently selected item in a menu is initialised to 0, despite the menu being still empty.
This makes it impractical to know whether the list has already been populated without checking the array of items directly (get_item_list()).
get_item_list()
To Reproduce Steps to reproduce the behavior:
get_selected_item_index()
Expected behavior The _selected_item variable should be initialised to -1 (or any other appropriate value).
_selected_item
-1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The index of the currently selected item in a menu is initialised to 0, despite the menu being still empty.
This makes it impractical to know whether the list has already been populated without checking the array of items directly (
get_item_list()
).To Reproduce
Steps to reproduce the behavior:
get_selected_item_index()
returns 0Expected behavior
The
_selected_item
variable should be initialised to-1
(or any other appropriate value).The text was updated successfully, but these errors were encountered: