update progress updater

This commit is contained in:
2022-06-18 16:11:41 +02:00
parent 83b0ca22cd
commit 1488784a81
3 changed files with 4 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ namespace SM64_ROM_Manager.ProgressUpdater
RadListDataItem selectedItem = null;
foreach (RadListDataItem item in RadListControl_Paragraph.Items)
{
if (selectedItem == null && item is RadCheckedListDataItem && ((RadCheckedListDataItem)item).Checked)
if (selectedItem == null && item.Selected)
selectedItem = item;
}
@@ -73,7 +73,7 @@ namespace SM64_ROM_Manager.ProgressUpdater
RadListControl_Paragraph.Refresh();
if (RadListControl_Paragraph.Items.Any())
((RadCheckedListDataItem)RadListControl_Paragraph.Items[0]).Checked = true;
RadListControl_Paragraph.Items[0].Selected = true;
}
}