Skip to content

Commit

Permalink
fix: logo pos no longer breaks save when missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed Jun 10, 2023
1 parent 180815d commit db0bbbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/controllers/AppController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ export class AppController {
const originalPos = originalLogoPos[appid]?.logoPosition;
const logoPos = steamLogo.logoPosition;

if (!logoPos) continue;
if (logoPos.nHeightPct != originalPos?.nHeightPct || logoPos.nWidthPct != originalPos?.nWidthPct || logoPos.pinnedPosition != originalPos?.pinnedPosition) {
logoPosStrings[appid] = logoPos.pinnedPosition == "REMOVE" ? "REMOVE" : JSON.stringify(steamLogo);
}
Expand Down

0 comments on commit db0bbbc

Please sign in to comment.