Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
visose committed Jan 21, 2022
1 parent 5198473 commit 40ae234
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Product>Robots</Product>
<Version>1.0.4</Version>
<Version>1.1.0</Version>
<Description>Create and simulate ABB, KUKA, UR and Staubli robot programs.</Description>
<Authors>Robots Authors</Authors>
<Copyright>Copyright (c) 2021 $(Authors)</Copyright>
Expand Down
15 changes: 10 additions & 5 deletions src/Robots.Grasshopper/RobotSystem/LoadRobotSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,18 @@ void UpdateValueList()
foreach (string robotSystemName in robotSystems)
valueList.ListItems.Add(new GH_ValueListItem(robotSystemName, $"\"{robotSystemName}\""));

if (selected is null)
return;
if (selected is not null)
{
var selectedIndex = valueList.ListItems.FindIndex(s => s.Name == selected.Name);

var selectedIndex = valueList.ListItems.FindIndex(s => s.Name == selected.Name);
if (selectedIndex != -1)
{
valueList.SelectItem(selectedIndex);
return;
}
}

if (selectedIndex != -1)
valueList.SelectItem(selectedIndex);
valueList.ExpireSolution(true);
}

// form
Expand Down
2 changes: 1 addition & 1 deletion tests/Robots.Tests/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
//new Performance();

//var github = new OnlineLibrary();
//await github.UpdateLibraryAsync();
//await github.UpdateLibraryAsync();
2 changes: 1 addition & 1 deletion tests/Robots.Tests/Robots.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<GenerateProgramFile>false</GenerateProgramFile>
<GenerateProgramFile>true</GenerateProgramFile>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 40ae234

Please sign in to comment.