summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorthat <github@that.at>2015-11-02 20:15:07 +0100
committerDees Troy <dees_troy@teamw.in>2015-11-05 19:48:24 +0100
commit35f17402e416e55a823888478ffb86243b7b1103 (patch)
tree749a03d042e3022bd65a966300eda45d9aceed13 /gui
parentMerge "Revert :Force sync files written by minzip" into android-6.0 (diff)
downloadandroid_bootable_recovery-35f17402e416e55a823888478ffb86243b7b1103.tar
android_bootable_recovery-35f17402e416e55a823888478ffb86243b7b1103.tar.gz
android_bootable_recovery-35f17402e416e55a823888478ffb86243b7b1103.tar.bz2
android_bootable_recovery-35f17402e416e55a823888478ffb86243b7b1103.tar.lz
android_bootable_recovery-35f17402e416e55a823888478ffb86243b7b1103.tar.xz
android_bootable_recovery-35f17402e416e55a823888478ffb86243b7b1103.tar.zst
android_bootable_recovery-35f17402e416e55a823888478ffb86243b7b1103.zip
Diffstat (limited to '')
-rw-r--r--gui/listbox.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/listbox.cpp b/gui/listbox.cpp
index 0a53a7c88..d2973bb6e 100644
--- a/gui/listbox.cpp
+++ b/gui/listbox.cpp
@@ -141,8 +141,10 @@ int GUIListBox::NotifyVarChange(const std::string& varName, const std::string& v
if (isCheckList)
{
- if (item.variableName == varName) {
- item.selected = (value != "0");
+ if (item.variableName == varName || varName.empty()) {
+ std::string val;
+ DataManager::GetValue(item.variableName, val);
+ item.selected = (val != "0");
mUpdate = 1;
}
}