mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Use override value for home button when available.
This commit is contained in:
parent
08328c22d6
commit
1839f44dbb
1 changed files with 7 additions and 2 deletions
|
@ -377,8 +377,13 @@ void Servo::GoHome() {
|
||||||
ApplicationData::Current().LocalSettings();
|
ApplicationData::Current().LocalSettings();
|
||||||
auto prefs = localSettings.Containers().Lookup(L"servoUserPrefs");
|
auto prefs = localSettings.Containers().Lookup(L"servoUserPrefs");
|
||||||
auto home_pref = prefs.Values().Lookup(L"shell.homepage");
|
auto home_pref = prefs.Values().Lookup(L"shell.homepage");
|
||||||
auto home =
|
auto home = home_pref ? unbox_value<hstring>(home_pref) :
|
||||||
home_pref ? unbox_value<hstring>(home_pref) : FALLBACK_DEFAULT_URL;
|
#ifdef OVERRIDE_DEFAULT_URL
|
||||||
|
OVERRIDE_DEFAULT_URL
|
||||||
|
#else
|
||||||
|
FALLBACK_DEFAULT_URL
|
||||||
|
#endif
|
||||||
|
;
|
||||||
LoadUri(home);
|
LoadUri(home);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue