mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
CA-286882: Check for page visibilty before calling HidePage
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
56a3725b36
commit
034f472163
@ -3031,18 +3031,24 @@ namespace XenAdmin
|
||||
switch (submodeItem.SubMode)
|
||||
{
|
||||
case NotificationsSubMode.Alerts:
|
||||
if (updatesPage.Visible)
|
||||
updatesPage.HidePage();
|
||||
if (eventsPage.Visible)
|
||||
eventsPage.HidePage();
|
||||
alertPage.ShowPage();
|
||||
updatesPage.HidePage();
|
||||
eventsPage.HidePage();
|
||||
break;
|
||||
case NotificationsSubMode.Updates:
|
||||
alertPage.HidePage();
|
||||
if (alertPage.Visible)
|
||||
alertPage.HidePage();
|
||||
if (eventsPage.Visible)
|
||||
eventsPage.HidePage();
|
||||
updatesPage.ShowPage();
|
||||
eventsPage.HidePage();
|
||||
break;
|
||||
case NotificationsSubMode.Events:
|
||||
alertPage.HidePage();
|
||||
updatesPage.HidePage();
|
||||
if (alertPage.Visible)
|
||||
alertPage.HidePage();
|
||||
if (updatesPage.Visible)
|
||||
updatesPage.HidePage();
|
||||
eventsPage.ShowPage();
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user