mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-15 20:25:00 +03:00
v4.10-9505-beta
This commit is contained in:
@ -432,6 +432,12 @@ void UpdateNotifyProcUi(UPDATE_CLIENT *c, UINT latest_build, UINT64 latest_date,
|
||||
}
|
||||
}
|
||||
|
||||
if (u->CurrentlyDisabled)
|
||||
{
|
||||
// Hide
|
||||
return;
|
||||
}
|
||||
|
||||
// Show the update screen
|
||||
Zero(&p, sizeof(p));
|
||||
|
||||
@ -491,6 +497,18 @@ WINUI_UPDATE *InitUpdateUi(wchar_t *title, char *name, char *family_name, UINT64
|
||||
return u;
|
||||
}
|
||||
|
||||
// Disable the update notification UI
|
||||
void DisableUpdateUi(WINUI_UPDATE *u)
|
||||
{
|
||||
// Validate arguments
|
||||
if (u == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
u->CurrentlyDisabled = true;
|
||||
}
|
||||
|
||||
// Release the update notification
|
||||
void FreeUpdateUi(WINUI_UPDATE *u)
|
||||
{
|
||||
|
Reference in New Issue
Block a user