Use override value for home button when available.

This commit is contained in:
Josh Matthews 2020-08-06 12:27:25 -04:00
parent 08328c22d6
commit 1839f44dbb

View file

@ -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<hstring>(home_pref) : FALLBACK_DEFAULT_URL;
auto home = home_pref ? unbox_value<hstring>(home_pref) :
#ifdef OVERRIDE_DEFAULT_URL
OVERRIDE_DEFAULT_URL
#else
FALLBACK_DEFAULT_URL
#endif
;
LoadUri(home);
}