chore: fixed windows branch in get_user_config_dir()

This commit is contained in:
2025-12-07 03:11:47 +03:00
parent 082d0db47b
commit f39d22b5e3
2 changed files with 8 additions and 3 deletions

View File

@@ -25,9 +25,9 @@ std::filesystem::path config::get_user_config_dir()
{
#ifdef _WIN32
if (const char *appdata = std::getenv("APPDATA"))
return fs::path(appdata) / "clrsync";
return std::filesystem::path(appdata) / "clrsync";
else
return fs::path("C:/clrsync");
return std::filesystem::path("C:/clrsync");
#else
if (const char *xdg = std::getenv("XDG_CONFIG_HOME"))
return std::filesystem::path(xdg) / "clrsync";