From 5cfa8889f4453ab50c962272a1e42cbc947f2a2d Mon Sep 17 00:00:00 2001 From: "Nghia M. Luong" <32159519+sqrlmn@users.noreply.github.com> Date: Fri, 17 Apr 2020 01:47:24 -0700 Subject: [PATCH] Fix for issue #1532 - [PowerToys tray icon] Show version on tooltip (#2117) * Fix for issue #1532 [PowerToys] Show version on tooltip * Update src/runner/tray_icon.cpp Co-Authored-By: Andrey Nekrasov Co-authored-by: Andrey Nekrasov --- src/runner/tray_icon.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runner/tray_icon.cpp b/src/runner/tray_icon.cpp index ad59463415..6e8e03d574 100644 --- a/src/runner/tray_icon.cpp +++ b/src/runner/tray_icon.cpp @@ -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;