Sets an individual setting to the specified value. If no filename has been specified up to this point, then a default filename will be used. After value has been modified, the settings file is written to disk. :param key: Setting to be saved. Can be any valid dictionary key type
(key, value)
| 22978 | |
| 22979 | |
| 22980 | def user_settings_set_entry(key, value): |
| 22981 | """ |
| 22982 | Sets an individual setting to the specified value. If no filename has been specified up to this point, |
| 22983 | then a default filename will be used. |
| 22984 | After value has been modified, the settings file is written to disk. |
| 22985 | |
| 22986 | :param key: Setting to be saved. Can be any valid dictionary key type |
| 22987 | :type key: (Any) |
| 22988 | :param value: Value to save as the setting's value. Can be anything |
| 22989 | :type value: (Any) |
| 22990 | """ |
| 22991 | settings = UserSettings._default_for_function_interface |
| 22992 | settings.set(key, value) |
| 22993 | |
| 22994 | |
| 22995 | def user_settings_delete_entry(key, silent_on_error=None): |
no test coverage detected