瀏覽代碼

Revert changes in AppBuilder.cs

Jumar Macato 7 年之前
父節點
當前提交
a71151839d
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/Avalonia.DotNetCoreRuntime/AppBuilder.cs

+ 3 - 1
src/Avalonia.DotNetCoreRuntime/AppBuilder.cs

@@ -47,6 +47,8 @@ namespace Avalonia
             //that CLR doesn't try to load dependencies before referencing method is jitted
             //that CLR doesn't try to load dependencies before referencing method is jitted
             if (os == OperatingSystemType.WinNT)
             if (os == OperatingSystemType.WinNT)
                 LoadWin32();
                 LoadWin32();
+            else if(os==OperatingSystemType.OSX)
+                LoadMonoMac();
             else
             else
                 LoadGtk3();
                 LoadGtk3();
             this.UseSkia();
             this.UseSkia();
@@ -54,7 +56,7 @@ namespace Avalonia
             return this;
             return this;
         }
         }
 
 
-        
+        void LoadMonoMac() => this.UseMonoMac();
         void LoadWin32() => this.UseWin32();
         void LoadWin32() => this.UseWin32();
         void LoadGtk3() => this.UseGtk3();
         void LoadGtk3() => this.UseGtk3();
     }
     }