Fix X-Plane checkable menu items

- menuItem ref was wrong
- CMenuItem::setChecked did not use the menu enum
- Remove the checked argument to CMenuItem constructor
This commit is contained in:
Roland Winklmeier
2018-09-24 16:45:12 +02:00
committed by Klaus Basan
parent 84f1e21cf8
commit 41ac858df8
2 changed files with 7 additions and 10 deletions

View File

@@ -43,7 +43,7 @@ namespace XSwiftBus
private:
friend class CMenu;
CMenuItem(XPLMMenuID parent, int item, bool checkable, bool checked, std::function<void(bool)> callback);
CMenuItem(XPLMMenuID parent, int item, bool checkable, std::function<void(bool)> callback);
void setIndex(int index) { m_data->index = index; }