UI image selection (#97)

This commit is contained in:
Philip Kristoffersen
2022-04-23 20:33:16 +02:00
committed by GitHub
parent 91782b74eb
commit e77f2b5f31
49 changed files with 1368 additions and 801 deletions
+6 -8
View File
@@ -43,10 +43,11 @@ pub struct ShortcutInfo {
pub shortcuts: Vec<ShortcutOwned>,
}
#[derive(Default, PartialEq, Clone)]
pub struct SteamUsersInfo {
pub steam_user_data_folder: String,
pub shortcut_path: Option<String>,
pub user_id : String,
pub user_id: String,
}
/// Get the paths to the steam users shortcuts (one for each user)
@@ -89,14 +90,14 @@ pub fn get_shortcuts_paths(
return SteamUsersInfo {
steam_user_data_folder: folder_string,
shortcut_path: Some(shortcuts_path.to_str().unwrap().to_string()),
user_id
user_id,
};
} else {
return SteamUsersInfo {
SteamUsersInfo {
steam_user_data_folder: folder_string,
shortcut_path: None,
user_id
};
user_id,
}
}
})
.collect();
@@ -203,6 +204,3 @@ pub fn get_users_images(user: &SteamUsersInfo) -> Result<Vec<String>, Box<dyn Er
.collect();
Ok(file_names)
}