File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
using Avalonia . Controls ;
3
3
using Avalonia . Interactivity ;
4
4
using Avalonia . Markup . Xaml ;
5
- using ChessLib ;
6
5
using ChessLib . Engines ;
7
- using CoreChess . Localizer ;
8
6
using System ;
9
7
using System . Collections . Generic ;
10
- using System . IO ;
11
8
using System . Linq ;
12
9
13
10
namespace CoreChess . Views
@@ -30,6 +27,12 @@ protected override void InitializeComponent()
30
27
AvaloniaXamlLoader . Load ( this ) ;
31
28
base . InitializeComponent ( ) ;
32
29
30
+ if ( Environment . OSVersion . Platform != PlatformID . Win32NT ) {
31
+ var cb = this . FindControl < ComboBox > ( "m_EngineType" ) ;
32
+ var items = cb . Items as Avalonia . Collections . AvaloniaList < object > ;
33
+ items . RemoveAt ( 3 ) ;
34
+ }
35
+
33
36
m_Engines = new List < EngineBase > ( App . Settings . Engines ) ;
34
37
m_List = this . FindControl < Controls . ItemsList > ( "m_List" ) ;
35
38
m_List . Items = m_Engines . OrderBy ( e => e . Name ) ;
You can’t perform that action at this time.
0 commit comments