Disable update menu item during an update
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1692 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
99bae971a6
commit
334fceb311
1 changed files with 2 additions and 0 deletions
|
@ -525,6 +525,7 @@ DWORD CALLBACK UpdateThread(LPVOID v) {
|
||||||
static char pbuf[8192];
|
static char pbuf[8192];
|
||||||
char *p=NULL;
|
char *p=NULL;
|
||||||
*response = 0;
|
*response = 0;
|
||||||
|
EnableMenuItem(g_sdata.menu,IDM_UPDATE,MF_GRAYED);
|
||||||
if (getProxyInfo(pbuf))
|
if (getProxyInfo(pbuf))
|
||||||
{
|
{
|
||||||
p=my_strstr(pbuf,"http=");
|
p=my_strstr(pbuf,"http=");
|
||||||
|
@ -591,5 +592,6 @@ DWORD CALLBACK UpdateThread(LPVOID v) {
|
||||||
else MessageBox(g_sdata.hwnd,"There is no update available for NSIS at this time.","NSIS Update",MB_OK|MB_ICONINFORMATION);
|
else MessageBox(g_sdata.hwnd,"There is no update available for NSIS at this time.","NSIS Update",MB_OK|MB_ICONINFORMATION);
|
||||||
GlobalFree(response);
|
GlobalFree(response);
|
||||||
delete get;
|
delete get;
|
||||||
|
EnableMenuItem(g_sdata.menu,IDM_UPDATE,MF_ENABLED);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue