Do not remove PlatformIndependent OS when clearing list, and don't forget to refresh buttons when dialog is shown
This commit is contained in:
parent
e3f9bd4021
commit
b3cf4b63cd
@ -50,6 +50,8 @@ namespace UniversalEditor.Dialogs.Setup.Microsoft.ACME.BootstrapScript
|
||||
lvi.Tag = item;
|
||||
lv.Items.Add(lvi);
|
||||
}
|
||||
|
||||
RefreshButtons();
|
||||
}
|
||||
|
||||
private void cmdAdd_Click(object sender, EventArgs e)
|
||||
@ -109,6 +111,19 @@ namespace UniversalEditor.Dialogs.Setup.Microsoft.ACME.BootstrapScript
|
||||
}
|
||||
|
||||
lv.Items.Clear();
|
||||
|
||||
mvarOperatingSystems.Clear();
|
||||
mvarOperatingSystems.Add(BootstrapOperatingSystem.PlatformIndependent);
|
||||
|
||||
foreach (BootstrapOperatingSystem item in mvarOperatingSystems)
|
||||
{
|
||||
ListViewItem lvi = new ListViewItem();
|
||||
lvi.Checked = item.Enabled;
|
||||
lvi.Text = item.Name;
|
||||
lvi.Tag = item;
|
||||
lv.Items.Add(lvi);
|
||||
}
|
||||
|
||||
RefreshButtons();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user