opt android get_home, bad code get corrent result

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-10-23 16:11:59 +08:00
parent 9fe525bca1
commit 1c9d139ff5

View File

@ -569,7 +569,7 @@ impl Config {
pub fn get_home() -> PathBuf {
#[cfg(any(target_os = "android", target_os = "ios"))]
return Self::path(APP_HOME_DIR.read().unwrap().as_str());
return PathBuf::from(APP_HOME_DIR.read().unwrap().as_str());
#[cfg(not(any(target_os = "android", target_os = "ios")))]
{
if let Some(path) = dirs_next::home_dir() {