Skip to content

Commit

Permalink
Implement double-click on custom extractors list
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Oct 1, 2024
1 parent fbbbf69 commit 643bb9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/prefsdlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,7 @@ class ExtractorsPageWindow : public PrefsPanel
m_delete->Bind(wxEVT_BUTTON, &ExtractorsPageWindow::OnDeleteExtractor, this);

m_list->Bind(wxEVT_CHECKLISTBOX, &ExtractorsPageWindow::OnEnableExtractor, this);
m_list->Bind(wxEVT_LISTBOX_DCLICK, &ExtractorsPageWindow::OnEditExtractor, this);

m_edit->Bind(wxEVT_UPDATE_UI, [=](wxUpdateUIEvent& e) { e.Enable(m_list->GetSelection() != wxNOT_FOUND); });
m_delete->Bind(wxEVT_UPDATE_UI, [=](wxUpdateUIEvent& e) { e.Enable(m_list->GetSelection() != wxNOT_FOUND); });
Expand Down

0 comments on commit 643bb9d

Please sign in to comment.