Fix globals.json loading when using AppData directory

This commit is contained in:
xeon 2024-03-29 21:17:17 +03:00
parent 84984f2da6
commit dfffe1612e

View file

@ -22,7 +22,7 @@ lazy_static! {
std::fs::write(&env, DEFAULT_GLOBALS).unwrap(); std::fs::write(&env, DEFAULT_GLOBALS).unwrap();
} }
DEFAULT_GLOBALS.to_string() std::fs::read_to_string(&env).unwrap()
}; };
from_str(&data).unwrap() from_str(&data).unwrap()