Skip to content

Commit

Permalink
Expand active ship entry if ore hold is not yet visible in tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcitectus committed May 22, 2016
1 parent 407c097 commit 438220c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Sanderling/Sanderling.Exe/sample/script/Mine.ore.cs
Expand Up @@ -435,7 +435,12 @@ void EnsureWindowInventoryOpen()
void EnsureWindowInventoryOpenOreHold()
{
EnsureWindowInventoryOpen();


var inventoryActiveShip = WindowInventory?.ActiveShipEntry;

if(InventoryActiveShipOreHold == null && !(inventoryActiveShip?.IsExpanded ?? false))
Sanderling.MouseClickLeft(inventoryActiveShip.ExpandToggleButton);

if(!(InventoryActiveShipOreHold?.IsSelected ?? false))
Sanderling.MouseClickLeft(InventoryActiveShipOreHold);
}
Expand Down

0 comments on commit 438220c

Please sign in to comment.