mirror of
https://github.com/palera1n/palera1n.git
synced 2026-12-01 22:03:10 +01:00
feat(wx): add basic menubar for quit
This commit is contained in:
1 file changed
+7
@@ -71,6 +71,13 @@ MainFrame::MainFrame()
|
|||||||
|
|
||||||
SetSizer(root);
|
SetSizer(root);
|
||||||
|
|
||||||
|
// menu bar
|
||||||
|
#if __APPLE__
|
||||||
|
auto* menuBar = new wxMenuBar;
|
||||||
|
SetMenuBar(menuBar);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// listeners
|
||||||
Bind(EVT_DEVICE_STATE_UPDATE, [this](wxCommandEvent& e)
|
Bind(EVT_DEVICE_STATE_UPDATE, [this](wxCommandEvent& e)
|
||||||
{
|
{
|
||||||
auto* state = static_cast<DeviceState*>(e.GetClientData());
|
auto* state = static_cast<DeviceState*>(e.GetClientData());
|
||||||
|
|||||||
Reference in new issue
Block a user