Skip to content

Commit

Permalink
Fix spurious windows.forms reference.
Browse files Browse the repository at this point in the history
It was coming from the existence of a GUIMod extension method in a namespace with a using system.windows.forms.
  • Loading branch information
RichardLake committed Dec 19, 2014
1 parent 9f5f46d commit 64a9add
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
1 change: 0 additions & 1 deletion CKAN/CmdLine/CmdLine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
<HintPath>..\packages\CommandLineParser.1.9.71\lib\net40\CommandLine.dll</HintPath>
</Reference>
<Reference Include="System.Transactions" />
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
Expand Down
18 changes: 12 additions & 6 deletions CKAN/GUI/Util.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;


namespace CKAN
{
using System.Runtime.InteropServices;
using System.Windows.Forms;

public static class Util
{

public static bool IsLinux
{
get
Expand Down Expand Up @@ -75,12 +76,17 @@ public static void HideConsoleWindow()
ShowWindow(GetConsoleWindow(), 0);
}
}
}
}


namespace CKAN
{
public static class UtilWithoutWinForm
{
public static bool IsInstallable(this GUIMod mod)
{

return !(mod == null || mod.IsAutodetected || mod.IsIncompatible);
}
}

}
}

0 comments on commit 64a9add

Please sign in to comment.