From 8dc25b7984c4bb511f693c49ecfae11d42972e26 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Mon, 25 Apr 2016 23:06:53 -0500 Subject: Fixup reboot after install variables * Create correctly named data manager variable 'tw_install_reboot' * Make configurable through Settings * Remove closing tag space in theme files (not personal preference, but should match surrounding code style) * Fix the "two presses needed to enable" issue for the checkbox on the install screen Change-Id: I0ceb60b4888a672e2f0ecb5672b03cc86615621a --- data.cpp | 2 +- gui/theme/common/landscape.xml | 7 +++++-- gui/theme/common/portrait.xml | 7 +++++-- gui/theme/common/watch.xml | 7 +++++-- variables.h | 2 +- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/data.cpp b/data.cpp index 3eb9dadae..553c9a4cc 100644 --- a/data.cpp +++ b/data.cpp @@ -676,7 +676,7 @@ void DataManager::SetDefaultValues() mConst.SetValue(TW_MIN_SYSTEM_VAR, TW_MIN_SYSTEM_SIZE); mData.SetValue(TW_BACKUP_NAME, "(Auto Generate)"); - mPersist.SetValue(TW_REBOOT_AFTER_FLASH_VAR, "0"); + mPersist.SetValue(TW_INSTALL_REBOOT_VAR, "0"); mPersist.SetValue(TW_SIGNED_ZIP_VERIFY_VAR, "0"); mPersist.SetValue(TW_FORCE_MD5_CHECK_VAR, "0"); mPersist.SetValue(TW_DISABLE_FREE_SPACE_VAR, "0"); diff --git a/gui/theme/common/landscape.xml b/gui/theme/common/landscape.xml index 9272db01b..df68a3a63 100644 --- a/gui/theme/common/landscape.xml +++ b/gui/theme/common/landscape.xml @@ -441,9 +441,9 @@ - + {@install_reboot_chk=Reboot after installation is complete} - +