Skip to content

Commit

Permalink
Activate application on single left click (#529)
Browse files Browse the repository at this point in the history
Closes #469
  • Loading branch information
vktr committed Mar 2, 2018
1 parent ea15aa7 commit c875825
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/picotorrent/taskbaricon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ wxBEGIN_EVENT_TABLE(TaskBarIcon, wxTaskBarIcon)
EVT_MENU(ptID_ADD_MAGNET_LINK, TaskBarIcon::OnAddMagnetLink)
EVT_MENU(ptID_PREFERENCES, TaskBarIcon::OnViewPreferences)
EVT_MENU(wxID_EXIT, TaskBarIcon::OnExit)
EVT_TASKBAR_LEFT_DCLICK(TaskBarIcon::OnLeftButtonDClick)
EVT_TASKBAR_LEFT_DOWN(TaskBarIcon::OnLeftButtonDown)
wxEND_EVENT_TABLE()

TaskBarIcon::TaskBarIcon(wxFrame* parent,
Expand Down Expand Up @@ -67,7 +67,7 @@ void TaskBarIcon::OnExit(wxCommandEvent& WXUNUSED(event))
m_parent->Close(true);
}

void TaskBarIcon::OnLeftButtonDClick(wxTaskBarIconEvent& WXUNUSED(event))
void TaskBarIcon::OnLeftButtonDown(wxTaskBarIconEvent& WXUNUSED(event))
{
m_parent->MSWGetTaskBarButton()->Show();
m_parent->Restore();
Expand Down
2 changes: 1 addition & 1 deletion src/picotorrent/taskbaricon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace pt
void OnAddTorrent(wxCommandEvent&);
void OnAddMagnetLink(wxCommandEvent&);
void OnExit(wxCommandEvent&);
void OnLeftButtonDClick(wxTaskBarIconEvent&);
void OnLeftButtonDown(wxTaskBarIconEvent&);
void OnViewPreferences(wxCommandEvent&);

wxFrame* m_parent;
Expand Down

0 comments on commit c875825

Please sign in to comment.