about summary refs log tree commit diff
path: root/src/settings_manager.rs
diff options
context:
space:
mode:
authorRicky Kresslein <rk@lakoliu.com>2022-09-24 00:34:54 +0200
committerRicky Kresslein <rk@lakoliu.com>2022-09-24 00:34:54 +0200
commit87c05770789958e6786e6490eb1fa25cd116b361 (patch)
tree959c6344c99a0f85657759fd21618dff2e9673a1 /src/settings_manager.rs
parent54e7ba5b16045d4e653f392d38f045a4f7183732 (diff)
downloadFurtherance-87c05770789958e6786e6490eb1fa25cd116b361.tar.zst
Ability to change database location - #29
Diffstat (limited to 'src/settings_manager.rs')
-rwxr-xr-xsrc/settings_manager.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/settings_manager.rs b/src/settings_manager.rs
index d6ff17d..18c341f 100755
--- a/src/settings_manager.rs
+++ b/src/settings_manager.rs
@@ -41,3 +41,9 @@ pub fn get_int(key: &str) -> i32 {
     let settings = get_settings();
     settings.int(key)
 }
+
+#[allow(dead_code)]
+pub fn get_string(key: &str) -> String {
+    let settings = get_settings();
+    settings.string(key).to_string()
+}