Skip to content

Commit

Permalink
#8 open the tray icon menu on left clicks as well
Browse files Browse the repository at this point in the history
  • Loading branch information
m2jean committed Feb 4, 2023
1 parent 37f2236 commit 8a1a5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ToothTray/ToothTray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
default:
WORD event;
if (trayIcon.HandleMessage(message, lParam, &event)) {
if (event == WM_CONTEXTMENU) {
if (event == WM_CONTEXTMENU || event == NIN_SELECT || event == NIN_KEYSELECT) {
std::vector<BluetoothConnector> connectors = bluetoothAudioDeviceEmumerator.EnumerateAudioDevices();
trayMenu.BuildMenu(connectors);
trayMenu.ShowPopupMenu(hWnd, wParam);
Expand Down

0 comments on commit 8a1a5a5

Please sign in to comment.