mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #27522 - jdm:home-override, r=paulrouget
Use override value for home button when available. Fixes #27521.
This commit is contained in:
commit
4d1b96e605
1 changed files with 7 additions and 2 deletions
|
@ -386,8 +386,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