diff --git a/Duplicati/GUI/Duplicati.GUI.TrayIcon/Duplicati.GUI.TrayIcon.csproj b/Duplicati/GUI/Duplicati.GUI.TrayIcon/Duplicati.GUI.TrayIcon.csproj index 84c8251288..769ad06247 100644 --- a/Duplicati/GUI/Duplicati.GUI.TrayIcon/Duplicati.GUI.TrayIcon.csproj +++ b/Duplicati/GUI/Duplicati.GUI.TrayIcon/Duplicati.GUI.TrayIcon.csproj @@ -43,7 +43,7 @@ ..\..\..\thirdparty\MonoMac\MonoMac.dll - + CocoaRunner.cs diff --git a/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs b/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs index d6b8c84e44..7fba3811df 100644 --- a/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs +++ b/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs @@ -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");