From 362eb54258ef868d61209c9e0b4ba5bb11594893 Mon Sep 17 00:00:00 2001 From: Gerald Versluis Date: Fri, 8 Apr 2022 14:07:02 +0200 Subject: [PATCH] Update AppInfo.ios.tvos.watchos.macos.cs --- Xamarin.Essentials/AppInfo/AppInfo.ios.tvos.watchos.macos.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Xamarin.Essentials/AppInfo/AppInfo.ios.tvos.watchos.macos.cs b/Xamarin.Essentials/AppInfo/AppInfo.ios.tvos.watchos.macos.cs index 8ef60bf9a..a295d414c 100644 --- a/Xamarin.Essentials/AppInfo/AppInfo.ios.tvos.watchos.macos.cs +++ b/Xamarin.Essentials/AppInfo/AppInfo.ios.tvos.watchos.macos.cs @@ -31,7 +31,10 @@ static void PlatformShowSettingsUI() { MainThread.BeginInvokeOnMainThread(() => { +// Ignore obsolete for the time being. Will be updated in a future release. +#pragma warning disable CS0618 // Type or member is obsolete var prefsApp = ScriptingBridge.SBApplication.FromBundleIdentifier("com.apple.systempreferences"); +#pragma warning restore CS0618 // Type or member is obsolete prefsApp.SendMode = ScriptingBridge.AESendMode.NoReply; prefsApp.Activate(); });