Correct DisplayName to DisplayIcon

This commit is contained in:
Philip
2022-01-02 14:17:36 +01:00
parent 78ed0c55f2
commit 6187e6cab0
+1 -1
View File
@@ -74,7 +74,7 @@ fn get_games_from_winreg() -> Result<Vec<Game>, Box<dyn Error>> {
if let Ok(subkey) = subkey {
let name: Result<String, _> = subkey.get_value("DisplayName");
if let Ok(name) = name {
let icon: String = subkey.get_value("DisplayName").unwrap_or_default();
let icon: String = subkey.get_value("DisplayIcon").unwrap_or_default();
games.push(Game { name, icon, id })
}
}