Skip to content

Commit

Permalink
Another fix attempt for tkashkin#77
Browse files Browse the repository at this point in the history
  • Loading branch information
tkashkin committed Sep 17, 2018
1 parent 22b0ab5 commit 53fbb2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/data/sources/humble/HumbleGame.vala
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace GameHub.Data.Sources.Humble
public string order_id;

private bool game_info_updated = false;
private bool game_info_refreshed = false;

public ArrayList<Game.Installer>? installers { get; protected set; default = new ArrayList<Game.Installer>(); }

Expand Down Expand Up @@ -205,9 +206,10 @@ namespace GameHub.Data.Sources.Humble
}
}

if(refresh)
if(refresh && !game_info_refreshed)
{
debug("[HumbleGame.update_game_info] Refreshing");
game_info_refreshed = true;
game_info_updated = false;
installers.clear();
yield update_game_info();
Expand Down

0 comments on commit 53fbb2f

Please sign in to comment.