Skip to content

Commit

Permalink
Fix for issue #1532 - [PowerToys tray icon] Show version on tooltip (#…
Browse files Browse the repository at this point in the history
…2117)

* Fix for issue #1532

[PowerToys] Show version on tooltip

* Update src/runner/tray_icon.cpp

Co-Authored-By: Andrey Nekrasov <[email protected]>

Co-authored-by: Andrey Nekrasov <[email protected]>
  • Loading branch information
sqrlmn and yuyoyuppe committed Apr 17, 2020
1 parent 0cbe7a1 commit 5cfa888
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runner/tray_icon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ void start_tray_icon()
tray_icon_data.hWnd = hwnd;
tray_icon_data.uID = id_tray_icon;
tray_icon_data.uCallbackMessage = wm_icon_notify;
wcscpy_s(tray_icon_data.szTip, sizeof(tray_icon_data.szTip) / sizeof(WCHAR), L"PowerToys");
std::wstring about_msg_pt_version = L"PowerToys\n" + get_product_version();
wcscpy_s(tray_icon_data.szTip, sizeof(tray_icon_data.szTip) / sizeof(WCHAR), about_msg_pt_version.c_str());
tray_icon_data.uFlags = NIF_ICON | NIF_TIP | NIF_MESSAGE;

tray_icon_created = Shell_NotifyIcon(NIM_ADD, &tray_icon_data) == TRUE;
Expand Down

0 comments on commit 5cfa888

Please sign in to comment.