From 4f577c65a4d8806f79637c50c21ca3a683c5a07a Mon Sep 17 00:00:00 2001 From: Thomas Suckow Date: Fri, 1 Mar 2024 22:27:03 -0800 Subject: [PATCH] Fix backward logic to try to fix mac build --- .../GUI/Duplicati.GUI.TrayIcon/Duplicati.GUI.TrayIcon.csproj | 2 +- Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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");