mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 526479: Choosing autodetect in the language menulist failed [r=mark.finkle]
This commit is contained in:
parent
b4a0c50a6b
commit
f45c6049f5
@ -164,7 +164,8 @@ var PreferencesView = {
|
||||
let newLocale = this._list.selectedItem.value;
|
||||
|
||||
if (newLocale == "auto") {
|
||||
gPrefService.clearUserPref("general.useragent.locale");
|
||||
if (gPrefService.prefHasUserValue("general.useragent.locale"))
|
||||
gPrefService.clearUserPref("general.useragent.locale");
|
||||
gPrefService.setBoolPref("intl.locale.matchOS", true);
|
||||
} else {
|
||||
gPrefService.setBoolPref("intl.locale.matchOS", false);
|
||||
|
Loading…
Reference in New Issue
Block a user