summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthat <github@that.at>2016-02-02 22:12:50 +0100
committerDees Troy <dees_troy@teamw.in>2016-02-03 04:10:02 +0100
commit675ddaeaf9048a1f84c23912e9be9f5bf657c36b (patch)
tree9e92f92f92aa7ee1a038215f92b8f531e659daf4
parentChange some graphics build flags (diff)
downloadandroid_bootable_recovery-675ddaeaf9048a1f84c23912e9be9f5bf657c36b.tar
android_bootable_recovery-675ddaeaf9048a1f84c23912e9be9f5bf657c36b.tar.gz
android_bootable_recovery-675ddaeaf9048a1f84c23912e9be9f5bf657c36b.tar.bz2
android_bootable_recovery-675ddaeaf9048a1f84c23912e9be9f5bf657c36b.tar.lz
android_bootable_recovery-675ddaeaf9048a1f84c23912e9be9f5bf657c36b.tar.xz
android_bootable_recovery-675ddaeaf9048a1f84c23912e9be9f5bf657c36b.tar.zst
android_bootable_recovery-675ddaeaf9048a1f84c23912e9be9f5bf657c36b.zip
-rw-r--r--gui/object.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/object.cpp b/gui/object.cpp
index 206f2c726..14df14fc1 100644
--- a/gui/object.cpp
+++ b/gui/object.cpp
@@ -94,6 +94,10 @@ bool GUIObject::isConditionTrue(Condition* condition)
if (DataManager::GetValue(condition->mVar2, var2))
var2 = condition->mVar2;
+ if (var2.substr(0, 2) == "{@")
+ // translate resource string in value
+ var2 = gui_parse_text(var2);
+
// This is a special case, we stat the file and that determines our result
if (var1 == "fileexists")
{