diff options
Diffstat (limited to 'src/settings_manager.rs')
-rw-r--r-- | src/settings_manager.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/settings_manager.rs b/src/settings_manager.rs index 18c341f..d50438e 100644 --- a/src/settings_manager.rs +++ b/src/settings_manager.rs @@ -47,3 +47,9 @@ pub fn get_string(key: &str) -> String { let settings = get_settings(); settings.string(key).to_string() } + +#[allow(dead_code)] +pub fn set_int(key: &str, val: i32) { + let settings = get_settings(); + _ = settings.set_int(key, val); +} |