From 87c05770789958e6786e6490eb1fa25cd116b361 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Sat, 24 Sep 2022 00:34:54 +0200 Subject: Ability to change database location - #29 --- src/settings_manager.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/settings_manager.rs') 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() +} -- cgit 1.4.1