From 1839f44dbb83d679647deaec51c209a33d4284ee Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 6 Aug 2020 12:27:25 -0400 Subject: [PATCH] Use override value for home button when available. --- support/hololens/ServoApp/ServoControl/Servo.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/support/hololens/ServoApp/ServoControl/Servo.cpp b/support/hololens/ServoApp/ServoControl/Servo.cpp index 80a445468e5..eaaa3c61e6b 100644 --- a/support/hololens/ServoApp/ServoControl/Servo.cpp +++ b/support/hololens/ServoApp/ServoControl/Servo.cpp @@ -377,8 +377,13 @@ void Servo::GoHome() { ApplicationData::Current().LocalSettings(); auto prefs = localSettings.Containers().Lookup(L"servoUserPrefs"); auto home_pref = prefs.Values().Lookup(L"shell.homepage"); - auto home = - home_pref ? unbox_value(home_pref) : FALLBACK_DEFAULT_URL; + auto home = home_pref ? unbox_value(home_pref) : +#ifdef OVERRIDE_DEFAULT_URL + OVERRIDE_DEFAULT_URL +#else + FALLBACK_DEFAULT_URL +#endif + ; LoadUri(home); }