diff --git a/DockerForm/Form1.cs b/DockerForm/Form1.cs index bd0e46a..93ac3e7 100644 --- a/DockerForm/Form1.cs +++ b/DockerForm/Form1.cs @@ -255,8 +255,21 @@ public void InsertOrUpdateGameItem(DockerGame game) { GameList.Items.Add(newitem); DatabaseManager.GameDB[game.GUID] = game; - - UpdateLog("[" + game.Name + "] has been added to the database"); + UpdateLog("[" + game.Name + "] profile has been added to the database"); + } + else + { + for (int i = 0; i < GameList.Items.Count; i++) + { + exListBoxItem item = (exListBoxItem)GameList.Items[i]; + if (item.Guid == game.GUID) + { + GameList.Items[i] = newitem; + DatabaseManager.GameDB[game.GUID] = game; + UpdateLog("[" + game.Name + "] profile has been updated"); + break; + } + } } // Update current title