diff options
author | Gunnar Hjalmarsson <gunnarhj@ubuntu.com> | 2023-03-25 03:37:44 +0100 |
---|---|---|
committer | Felipe Borges <felipeborges@gnome.org> | 2023-03-28 15:53:52 +0200 |
commit | 33bf07037c77dad5895748f186634c8dfbbcdb73 (patch) | |
tree | 424707b598966f704c63a8782d13d42ccc73eb91 | |
parent | 5242d3ff69d05b0e48f921fac247a350e1b9b6e7 (diff) | |
download | gnome-control-center-33bf07037c77dad5895748f186634c8dfbbcdb73.tar.gz |
region: Fix label of formats for the login screen
When system_region equals system_language, the UI should state the
country of the system_language as the selected login screen formats,
and that is not always "United States".
Fixes: GNOME/gnome-control-center#2418
-rw-r--r-- | panels/region/cc-region-panel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c index 084904590..afe0fae60 100644 --- a/panels/region/cc-region-panel.c +++ b/panels/region/cc-region-panel.c @@ -567,6 +567,8 @@ update_login_region (CcRegionPanel *self) if (self->system_region) name = gnome_get_country_from_locale (self->system_region, self->system_region); + else if (self->system_language) + name = gnome_get_country_from_locale (self->system_language, self->system_language); if (!name) name = gnome_get_country_from_locale (DEFAULT_LOCALE, DEFAULT_LOCALE); |