From 37da818e42708ae072a5b320de5f2e37bf1c5c37 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Mon, 16 Mar 2026 17:03:28 +0600 Subject: [PATCH] Test fix for numlock saving --- source/ubinstall-gtk-keyboard.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/ubinstall-gtk-keyboard.c b/source/ubinstall-gtk-keyboard.c index a7e3538..e82afa0 100644 --- a/source/ubinstall-gtk-keyboard.c +++ b/source/ubinstall-gtk-keyboard.c @@ -42,7 +42,11 @@ int yon_keyboard_save(main_window *widgets){ case 2: numlock = "off"; break; } - yon_config_register(num_lock_boot_parameter,num_lock_boot_parameter_command,numlock); + if (!yon_char_is_empty(numlock)){ + yon_config_register(num_lock_boot_parameter,num_lock_boot_parameter_command,numlock); + } else { + yon_config_remove_by_key(num_lock_boot_parameter); + } if (!main_config.configure_mode){ int size; config_str parameters = yon_config_get_save_parameters_by_key(&size,xkbmodel_parameter,xkbmodel_parameter,num_lock_boot_parameter,NULL);