mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
Do not start updating the agility before reaching the corresponding page on the HAWizard.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
a68ca3beb2
commit
649e5a3483
@ -110,7 +110,7 @@ namespace XenAdmin.Dialogs
|
||||
{
|
||||
base.OnShown(e);
|
||||
assignPriorities.Connection = pool.Connection;
|
||||
assignPriorities.StartNtolUpdate();
|
||||
assignPriorities.PopulatePageControls();
|
||||
}
|
||||
|
||||
protected override void OnClosing(CancelEventArgs e)
|
||||
|
@ -60,6 +60,7 @@ namespace XenAdmin.Wizards.HAWizard_Pages
|
||||
/// </summary>
|
||||
public new IXenConnection Connection
|
||||
{
|
||||
private get { return connection; }
|
||||
set
|
||||
{
|
||||
if (value == null)
|
||||
@ -68,16 +69,20 @@ namespace XenAdmin.Wizards.HAWizard_Pages
|
||||
if (connection != null)
|
||||
DeregisterEvents();
|
||||
|
||||
this.connection = value;
|
||||
|
||||
connection = value;
|
||||
RegisterEvents();
|
||||
}
|
||||
}
|
||||
|
||||
internal void PopulatePageControls()
|
||||
{
|
||||
Debug.Assert(connection != null, "Connection is null; set it to non-null before calling this method.");
|
||||
|
||||
UpdateMenuItems();
|
||||
PopulateVMs();
|
||||
|
||||
haNtolIndicator.Connection = value;
|
||||
haNtolIndicator.Connection = Connection;
|
||||
haNtolIndicator.Settings = getCurrentSettings();
|
||||
}
|
||||
StartNtolUpdate();
|
||||
}
|
||||
|
||||
private void UpdateMenuItems()
|
||||
@ -203,7 +208,7 @@ namespace XenAdmin.Wizards.HAWizard_Pages
|
||||
/// </summary>
|
||||
internal bool ProtectVmsByDefault { get; set; }
|
||||
|
||||
internal void StartNtolUpdate()
|
||||
private void StartNtolUpdate()
|
||||
{
|
||||
haNtolIndicator.StartNtolUpdate();
|
||||
}
|
||||
@ -693,7 +698,7 @@ namespace XenAdmin.Wizards.HAWizard_Pages
|
||||
|
||||
protected override void PageLoadedCore(PageLoadedDirection direction)
|
||||
{
|
||||
StartNtolUpdate();
|
||||
PopulatePageControls();
|
||||
}
|
||||
|
||||
public override void SelectDefaultControl()
|
||||
|
Loading…
Reference in New Issue
Block a user