Skip to content

Commit

Permalink
Fix error when popup menu was shown (Linux)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrietS committed Jan 13, 2025
1 parent 66302da commit 8813524
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,8 @@ void MainWindow::OnRightMouseDown(wxMouseEvent& event)
contextMenu.Append(wxID_ICONIZE_FRAME, wxT("Hide (minimize)"));
contextMenu.AppendSeparator();
{
wxMenuItem* settingsItem = new wxMenuItem(&contextMenu, wxID_PREFERENCES, wxT("Settings"));
wxMenuItem* settingsItem = contextMenu.Append(wxID_PREFERENCES, wxT("Settings"));
settingsItem->Enable(false);
contextMenu.Append(settingsItem);
}
contextMenu.AppendSeparator();
contextMenu.Append(wxID_EXIT, wxT("Exit"));
Expand Down

0 comments on commit 8813524

Please sign in to comment.