[Runner] Open settings when runner is elevated (#12597)

This commit is contained in:
Davide Giacometti 2021-08-04 19:54:09 +02:00 committed by GitHub
parent 37e130a1a8
commit cc6a8d30b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -1301,6 +1301,7 @@ mscorlib
msdata
MSDN
msedge
MSGFLT
mshtmdid
msi
MSIFASTINSTALL

View file

@ -246,6 +246,7 @@ void start_tray_icon()
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());
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;
}