chore: add debug feature

This commit is contained in:
GyDi
2022-04-01 23:43:35 +08:00
parent c93cbb614d
commit cbe7c69154
2 changed files with 6 additions and 1 deletions

View File

@@ -53,5 +53,9 @@ pub fn profiles_path() -> PathBuf {
}
pub fn profiles_temp_path() -> PathBuf {
temp_dir().join(PROFILE_TEMP)
#[cfg(not(feature = "debug-yml"))]
return temp_dir().join(PROFILE_TEMP);
#[cfg(feature = "debug-yml")]
return app_home_dir().join(PROFILE_TEMP);
}