Skip to content

Commit

Permalink
InsertOrUpdateGameItem received Update argument to force game update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesueur Benjamin committed Sep 15, 2020
1 parent da824a2 commit 6b84604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DockerForm/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public static void UpdateFormIcons()
catch (Exception ex) { UpdateLog("UpdateFormIcons: " + ex.Message, true); }
}

public void InsertOrUpdateGameItem(DockerGame game)
public void InsertOrUpdateGameItem(DockerGame game, bool Update = true)
{
exListBoxItem newitem = new exListBoxItem(game);

Expand All @@ -257,7 +257,7 @@ public void InsertOrUpdateGameItem(DockerGame game)
DatabaseManager.GameDB[game.GUID] = game;
UpdateLog("[" + game.Name + "] profile has been added to the database");
}
else
else if (Update)
{
for (int i = 0; i < GameList.Items.Count; i++)
{
Expand Down

0 comments on commit 6b84604

Please sign in to comment.