Skip to main content

save_config

Function save_config 

Source
pub fn save_config(
    layout: KeyboardLayout,
    theme_name: &str,
    font_names: &[String],
    enable_sound: bool,
    swap_caps_ctrl: bool,
    auto_dhcp: bool,
    enable_custom_colors: bool,
) -> Result<(), &'static str>
Expand description

設定を保存する。呼び出し側は戻り値を必ず確認すること (保存できていないのに「保存しました」と表示しないため)。