Fix error for shortcuts with no icon

This commit is contained in:
Patrick Nicolas
2026-01-24 15:20:32 +01:00
parent 4831e8847d
commit cd614c2361
+1 -1
View File
@@ -252,7 +252,7 @@ std::vector<wivrn::steam_shortcut> wivrn::read_steam_shortcuts(std::filesystem::
{
if (strcasecmp(key.c_str(), "AppName") == 0)
current.name = std::move(val);
else if (strcasecmp(key.c_str(), "icon") == 0)
else if (strcasecmp(key.c_str(), "icon") == 0 and not val.empty())
current.icon = std::move(val);
}
}