mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
UI image selection (#97)
This commit is contained in:
+6
-8
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user