mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
XSI-1476: No need to disable the post-update tasks textbox.
Also, prevent OnPageUpdated being called twice. Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
This commit is contained in:
parent
fd1c08218a
commit
cda79820b3
@ -1,5 +1,3 @@
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace XenAdmin.Wizards.PatchingWizard
|
||||
{
|
||||
partial class PatchingWizard_ModePage
|
||||
@ -125,7 +123,7 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
||||
private XenAdmin.Controls.Common.AutoHeightLabel autoHeightLabel1;
|
||||
private System.Windows.Forms.CheckBox removeUpdateFileCheckBox;
|
||||
private RadioButton AutomaticRadioButton;
|
||||
private ToolTip automaticRadioButtonTooltip;
|
||||
private System.Windows.Forms.RadioButton AutomaticRadioButton;
|
||||
private System.Windows.Forms.ToolTip automaticRadioButtonTooltip;
|
||||
}
|
||||
}
|
||||
|
@ -168,12 +168,6 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
return AutomaticRadioButton.Checked || ManualRadioButton.Checked;
|
||||
}
|
||||
|
||||
private void UpdateEnablement()
|
||||
{
|
||||
textBoxLog.Enabled = ManualRadioButton.Checked;
|
||||
OnPageUpdated();
|
||||
}
|
||||
|
||||
#region Accessors
|
||||
|
||||
public WizardMode WizardMode { get; set; }
|
||||
@ -196,12 +190,14 @@ namespace XenAdmin.Wizards.PatchingWizard
|
||||
|
||||
private void AutomaticRadioButton_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
UpdateEnablement();
|
||||
if (AutomaticRadioButton.Checked)
|
||||
OnPageUpdated();
|
||||
}
|
||||
|
||||
private void ManualRadioButton_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
UpdateEnablement();
|
||||
if (ManualRadioButton.Checked)
|
||||
OnPageUpdated();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
|
Loading…
Reference in New Issue
Block a user