mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +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();
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue