We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentbb5a539 commitb658376Copy full SHA for b658376
UnityLauncherPro/MainWindow.xaml
@@ -183,7 +183,7 @@
183
</DataGridTemplateColumn.CellTemplate>
184
</DataGridTemplateColumn>
185
186
- <DataGridTextColumnHeader="Branch"x:Name="txtColumnRenderPipeline"Binding="{Binding SRP}"CellStyle="{StaticResource NoFocusCellStyle}"ClipboardContentBinding="{x:Null}"IsReadOnly="True"Width="60">
+ <DataGridTextColumnHeader="SRP"x:Name="txtColumnRenderPipeline"Binding="{Binding SRP}"CellStyle="{StaticResource NoFocusCellStyle}"ClipboardContentBinding="{x:Null}"IsReadOnly="True"Width="50">
187
<DataGridTextColumn.HeaderTemplate>
188
<DataTemplate>
189
<TextBlockText="SRP"IsHitTestVisible="False" />
UnityLauncherPro/MainWindow.xaml.cs
@@ -3334,6 +3334,12 @@ public int Compare(Object a, Object b)
3334
if(((Project)a).TargetPlatform==null)returndirection==ListSortDirection.Ascending?-1:1;
3335
if(((Project)b).TargetPlatform==null)returndirection==ListSortDirection.Ascending?1:-1;
3336
returndirection==ListSortDirection.Ascending?((Project)a).TargetPlatform.CompareTo(((Project)b).TargetPlatform):((Project)b).TargetPlatform.CompareTo(((Project)a).TargetPlatform);
3337
+case"SRP":
3338
+// handle null values
3339
+if(((Project)a).SRP==null&&((Project)b).SRP==null)return0;
3340
+if(((Project)a).SRP==null)returndirection==ListSortDirection.Ascending?-1:1;
3341
+if(((Project)b).SRP==null)returndirection==ListSortDirection.Ascending?1:-1;
3342
+returndirection==ListSortDirection.Ascending?((Project)a).SRP.CompareTo(((Project)b).SRP):((Project)b).SRP.CompareTo(((Project)a).SRP);
3343
default:
3344
return0;
3345
}