fix: change config dir on windows

This commit is contained in:
Vladimir Rubin 2024-12-30 19:03:10 +02:00
parent 6ffdb55479
commit 2bacc48e17
Signed by: vavakado
GPG key ID: CAB744727F36B524

View file

@ -245,7 +245,7 @@ fn get_config_path() -> PathBuf {
if cfg!(target_os = "windows") {
let username = env::var("USERNAME").unwrap_or_else(|_| "Default".to_string());
PathBuf::from(format!(
"C:\\Users\\{}\\AppData\\Local\\filesorters\\filesorters.toml",
"C:\\Users\\{}\\AppData\\Local\\filesorters.toml",
username
))
} else {