opt android get_home, bad code get corrent result
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
9fe525bca1
commit
1c9d139ff5
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user