Added support for flash image in both slots

Change-Id: Iafda62a5f77f7c1f564f1a2ec0a59aefaf5e1266
This commit is contained in:
epicX
2021-02-24 23:12:08 +05:30
committed by bigbiff
parent 98203ceebe
commit 8f52c0a73d
7 changed files with 121 additions and 7 deletions
+4
View File
@@ -180,6 +180,8 @@ void GUIPartitionList::MatchList(void) {
pos = variablelist.find(searchvalue);
if (pos != string::npos) {
mList.at(i).selected = 1;
TWPartition* t_part = PartitionManager.Find_Partition_By_Path(mList.at(i).Mount_Point);
DataManager::SetValue("tw_is_slot_part", t_part != NULL ? (int) t_part->SlotSelect : 0);
} else {
mList.at(i).selected = 0;
}
@@ -272,6 +274,8 @@ void GUIPartitionList::NotifySelect(size_t item_selected)
mList.at(item_selected).selected = 0;
else
mList.at(item_selected).selected = 1;
TWPartition* t_part = PartitionManager.Find_Partition_By_Path(mList.at(item_selected).Mount_Point);
DataManager::SetValue("tw_is_slot_part", t_part != NULL ? (int) t_part->SlotSelect : 0);
int i;
string variablelist;