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);