Fixed bug where ship was not initially shown in overview
This commit is contained in:
parent
634c638e27
commit
b0c6b639be
@ -108,6 +108,8 @@ namespace BreCalClient
|
||||
this.dataGridShips.ItemsSource = null;
|
||||
BreCalLists.AllShips.Add(shipModel);
|
||||
BreCalLists.Ships.Add(shipModel);
|
||||
if(!BreCalLists.ShipLookupDict.TryAdd(id.VarId, shipModel))
|
||||
BreCalLists.ShipLookupDict[id.VarId] = shipModel;
|
||||
this.dataGridShips.ItemsSource = BreCalLists.AllShips;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user