mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
[Runner] Open settings when runner is elevated (#12597)
This commit is contained in:
committed by
GitHub
parent
37e130a1a8
commit
cc6a8d30b3
1
.github/actions/spell-check/expect.txt
vendored
1
.github/actions/spell-check/expect.txt
vendored
@@ -1301,6 +1301,7 @@ mscorlib
|
|||||||
msdata
|
msdata
|
||||||
MSDN
|
MSDN
|
||||||
msedge
|
msedge
|
||||||
|
MSGFLT
|
||||||
mshtmdid
|
mshtmdid
|
||||||
msi
|
msi
|
||||||
MSIFASTINSTALL
|
MSIFASTINSTALL
|
||||||
|
|||||||
@@ -246,6 +246,7 @@ void start_tray_icon()
|
|||||||
std::wstring about_msg_pt_version = L"PowerToys " + get_product_version();
|
std::wstring about_msg_pt_version = L"PowerToys " + get_product_version();
|
||||||
wcscpy_s(tray_icon_data.szTip, sizeof(tray_icon_data.szTip) / sizeof(WCHAR), about_msg_pt_version.c_str());
|
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_data.uFlags = NIF_ICON | NIF_TIP | NIF_MESSAGE;
|
||||||
|
ChangeWindowMessageFilterEx(hwnd, WM_COMMAND, MSGFLT_ALLOW, nullptr);
|
||||||
|
|
||||||
tray_icon_created = Shell_NotifyIcon(NIM_ADD, &tray_icon_data) == TRUE;
|
tray_icon_created = Shell_NotifyIcon(NIM_ADD, &tray_icon_data) == TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user