Skip to content

Commit

Permalink
Fix backward logic to try to fix mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuckow committed Mar 2, 2024
1 parent bc5f17e commit 4f577c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<HintPath>..\..\..\thirdparty\MonoMac\MonoMac.dll</HintPath>
</Reference>
<Compile Remove="CocoaRunner.cs" />
<Compile Include="CocoaRunner.cs" Condition="Exists('\Library\Frameworks\Xamarin.Mac.framework') And !$(DefineConstants.Contains(__LEGACY_TOOLKITS__))">
<Compile Include="CocoaRunner.cs" Condition="Exists('\Library\Frameworks\Xamarin.Mac.framework') And $(DefineConstants.Contains(__LEGACY_TOOLKITS__))">
<DependentUpon>CocoaRunner.cs</DependentUpon>
</Compile>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private static TrayIconBase RunTrayIcon(string toolkit)
#endif
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
private static TrayIconBase GetCocoaRunnerInstance() {
#if XAMARIN_MAC && !__LEGACY_TOOLKITS__
#if XAMARIN_MAC && __LEGACY_TOOLKITS__
return new CocoaRunner();
#else
throw new UserInformationException("Xamarin.Mac framework not found", "TrayIconMissingXamarinMac");
Expand Down

0 comments on commit 4f577c6

Please sign in to comment.