mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-14 20:52:12 -04:00
Fix extra, empty menu items in DebugMenuView.
Added TODO to prevent default construction of menu items, making this a compiler error in the future.
This commit is contained in:
parent
daeb542086
commit
ac6af17b94
2 changed files with 5 additions and 1 deletions
|
@ -35,6 +35,10 @@ namespace ui {
|
|||
struct MenuItem {
|
||||
std::string text;
|
||||
std::function<void(void)> on_select;
|
||||
|
||||
// TODO: Prevent default-constructed MenuItems.
|
||||
// I managed to construct a menu with three extra, unspecified menu items
|
||||
// in the array that were default constructed...
|
||||
};
|
||||
|
||||
class MenuItemView : public Widget {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue