(k: &str)
| 926 | } |
| 927 | |
| 928 | pub fn get_option(k: &str) -> String { |
| 929 | get_or( |
| 930 | &OVERWRITE_SETTINGS, |
| 931 | &CONFIG2.read().unwrap().options, |
| 932 | &DEFAULT_SETTINGS, |
| 933 | k, |
| 934 | ) |
| 935 | .unwrap_or_default() |
| 936 | } |
| 937 | |
| 938 | pub fn set_option(k: String, v: String) { |
| 939 | if !is_option_can_save(&OVERWRITE_SETTINGS, &k) { |