Added support for flash image in both slots
Change-Id: Iafda62a5f77f7c1f564f1a2ec0a59aefaf5e1266
diff --git a/gui/partitionlist.cpp b/gui/partitionlist.cpp
index 16e0997..9c5b58e 100644
--- a/gui/partitionlist.cpp
+++ b/gui/partitionlist.cpp
@@ -179,6 +179,8 @@
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 @@
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;