-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
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
Selecting the Last Damage Pattern Does Nothing #233
Comments
This is due to the ever-frustrating way wxpython menus work (or don't work, depends on how you look at them) I've looked at this and cannot really see how to fix it. The last menu item doesn't get bound to it's correct action function, and nothing I've tried works. Damage profile menu is a bit unique as it's the only one that return a list of menu items to be displayed (other context plugins simply give one menu item with it's corresponding handler or a submenu which builds and handles it's own menu). I will probably rework incoming damage patterns to be under their own submenu to work around this bug, as I can't be bothered to figure out again why the handling isn't working... |
Little more info: the last item is trying to call the default |
k, so I actually had some time to sit down and trace exactly what is happening. I have a fix pending in a pull request, but will have to wait until I get back from holiday to check on Linux and OS X. A bit of documentation, as I'm sure I'll be looking at this again at some point: What was happening was the context menu logic noted that these single menu items returned The reason why the others worked is because on the last loop the others were being set via the line It was fixed simple by differentiating the return of sub menu. If None, the module is a simple single menu item. If False, it means that submenus are possible within the module but this item does not have one, and it will handle its own binding. The context menu handler as a whole should be rewritten, but meh. |
This Bug seems to have cropped up recently. Selecting the last incoming damage pattern does nothing. If a fit is saved with the last pattern then the resists will show 0% for all damage types in the pattern and show invalid ehp.
The text was updated successfully, but these errors were encountered: