fixing settings to point to the correct config file

This commit is contained in:
Chris Cochrun 2023-09-08 14:54:31 -05:00
parent e5a7360f0b
commit ec6119eb57

View file

@ -36,7 +36,7 @@ mod settings {
#[qinvokable]
pub fn print_sound(self: Pin<&mut Self>) {
let mut config = Ini::new();
let _map = config.load("~/.config/librepresenter/Libre Presenter.conf");
let _map = config.load("~/.config/lumina/lumina.conf");
println!("{}", self.sound_effect());
}
@ -47,8 +47,8 @@ mod settings {
let home = dirs::config_dir();
println!("{:?}", home);
if let Some(mut conf) = home {
conf.push("librepresenter");
conf.push("Libre Presenter.conf");
conf.push("lumina");
conf.push("lumina.conf");
let _map = config.load(conf);
println!("{:?}", config);