mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
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:
committed by
Klaus Basan
parent
84f1e21cf8
commit
41ac858df8
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user