From b8a7d303f7ad9c7364f73f2bbf3e54299f083d1a Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 14 Nov 2025 11:57:57 +0600 Subject: [PATCH] Fixed layouts table default loading --- source/ubl-settings-system.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/ubl-settings-system.c b/source/ubl-settings-system.c index 8c91923..64a6bbf 100644 --- a/source/ubl-settings-system.c +++ b/source/ubl-settings-system.c @@ -38,9 +38,15 @@ void yon_interface_update(main_window *widgets){ if (!yon_char_is_empty(domain)){ gtk_entry_set_text(GTK_ENTRY(widgets->DomainEntry),domain); } + { char *config_locale = config(locale_parameter); char *config_languages = config(language_parameter); + if (yon_char_is_empty(config_locale)||yon_config_check_ignore(locale_parameter)){ + gtk_switch_set_active(GTK_SWITCH(widgets->LocaleDefaultSwitch),1); + } else { + gtk_switch_set_active(GTK_SWITCH(widgets->LocaleDefaultSwitch),0); + } int parsed_param_size; config_str parsed_param = yon_char_parse(config_locale,&parsed_param_size,","); GtkTreeIter iter;