Skip to content

Commit

Permalink
Fix scenario where first item wasn't marked in mod compare selector i…
Browse files Browse the repository at this point in the history
…f there is no priority mod
  • Loading branch information
bcssov committed Apr 27, 2020
1 parent 02c0db4 commit 4cd4222
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/IronyModManager/Converters/DefinitionModConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Avalonia.Data.Converters;
using IronyModManager.DI;
using IronyModManager.Parser.Common.Definitions;
Expand Down Expand Up @@ -71,6 +72,10 @@ public object Convert(IList<object> values, Type targetType, object parameter, C
{
return "CopiedDefinition";
}
else if (priority == null && col.ElementAt(0) == definition)
{
return "CopiedDefinition";
}
}
}
}
Expand Down

0 comments on commit 4cd4222

Please sign in to comment.