mirror of
https://github.com/flatpak/flatpak.git
synced 2026-02-01 19:41:27 -05:00
dir: Change scope of localed_proxy variable
Move it to where it's actually used.
This commit is contained in:
committed by
Simon McVittie
parent
ba86840f83
commit
fac93e69d5
@@ -16371,12 +16371,12 @@ get_system_locales (FlatpakDir *self)
|
||||
if (g_once_init_enter (&cached))
|
||||
{
|
||||
GPtrArray *langs = g_ptr_array_new_with_free_func (g_free);
|
||||
g_autoptr(GDBusProxy) localed_proxy = NULL;
|
||||
g_autoptr(GDBusProxy) accounts_proxy = NULL;
|
||||
|
||||
accounts_proxy = get_accounts_dbus_proxy ();
|
||||
if (!get_all_langs_from_accounts_dbus (accounts_proxy, langs))
|
||||
{
|
||||
g_autoptr(GDBusProxy) localed_proxy = NULL;
|
||||
|
||||
/* Get the system default locales */
|
||||
localed_proxy = get_localed_dbus_proxy ();
|
||||
|
||||
Reference in New Issue
Block a user