Prevent from setting Updater's Proxyas Notepad++ is not in Admin mode

Updater's Proxy settings needs Administrator privilege. This enhancement prevents from launching Updater's Proxy settings and displays an explicite message to user if Notepad++ is not in Admin mode.

Close #7779
This commit is contained in:
Don HO 2019-12-31 19:07:17 +05:00
parent 326733ec72
commit f51ae85d38
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -2913,6 +2913,15 @@ void Notepad_plus::command(int id)
generic_string param;
if (id == IDM_CONFUPDATERPROXY)
{
if (!_isAdministrator)
{
_nativeLangSpeaker.messageBox("GUpConfNeedAdminMode",
_pPublicInterface->getHSelf(),
TEXT("Please relaunch Notepad++ in Admin mode to configure proxy."),
TEXT("Proxy Settings"),
MB_OK | MB_APPLMODAL);
return;
}
param = TEXT("-options");
}
else