summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2013-02-28 02:50:43 +0100
committerbigbiff bigbiff <bigbiff@teamw.in>2013-02-28 02:50:43 +0100
commitf8e2f375656b5ed8e90a501aea4f6925fe7d7d5d (patch)
tree5761efa0ffe4cdcaa3aa31a10820f480df8d5515 /data.cpp
parentCopy fast scroll feature to listbox (diff)
downloadandroid_bootable_recovery-f8e2f375656b5ed8e90a501aea4f6925fe7d7d5d.tar
android_bootable_recovery-f8e2f375656b5ed8e90a501aea4f6925fe7d7d5d.tar.gz
android_bootable_recovery-f8e2f375656b5ed8e90a501aea4f6925fe7d7d5d.tar.bz2
android_bootable_recovery-f8e2f375656b5ed8e90a501aea4f6925fe7d7d5d.tar.lz
android_bootable_recovery-f8e2f375656b5ed8e90a501aea4f6925fe7d7d5d.tar.xz
android_bootable_recovery-f8e2f375656b5ed8e90a501aea4f6925fe7d7d5d.tar.zst
android_bootable_recovery-f8e2f375656b5ed8e90a501aea4f6925fe7d7d5d.zip
Diffstat (limited to 'data.cpp')
-rw-r--r--data.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/data.cpp b/data.cpp
index 279c48c1f..c517a993f 100644
--- a/data.cpp
+++ b/data.cpp
@@ -431,10 +431,12 @@ int DataManager::SetValue(const string varName, string value, int persist /* = 0
if (pos->second.second != 0)
SaveValues();
- if (varName == "tw_screen_timeout_secs")
+ if (varName == "tw_screen_timeout_secs") {
blankTimer.setTime(atoi(value.c_str()));
- else
+ }
+ else {
gui_notifyVarChange(varName.c_str(), value.c_str());
+ }
return 0;
}
@@ -853,6 +855,7 @@ void DataManager::SetDefaultValues()
mValues.insert(make_pair("tw_terminal_state", make_pair("0", 0)));
mValues.insert(make_pair("tw_background_thread_running", make_pair("0", 0)));
mValues.insert(make_pair(TW_RESTORE_FILE_DATE, make_pair("0", 0)));
+ mValues.insert(make_pair("tw_military_time", make_pair("0", 1)));
mValues.insert(make_pair("tw_screen_timeout_secs", make_pair("60", 1)));
mValues.insert(make_pair("tw_gui_done", make_pair("0", 0)));
#ifdef TW_MAX_BRIGHTNESS