mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 10:39:48 +02: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);
|
||||
|
||||
// menu bar
|
||||
#if __APPLE__
|
||||
auto* menuBar = new wxMenuBar;
|
||||
SetMenuBar(menuBar);
|
||||
#endif
|
||||
|
||||
// listeners
|
||||
Bind(EVT_DEVICE_STATE_UPDATE, [this](wxCommandEvent& e)
|
||||
{
|
||||
auto* state = static_cast<DeviceState*>(e.GetClientData());
|
||||
|
||||
Reference in new issue
Block a user