Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Update AppInfo.ios.tvos.watchos.macos.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis committed Apr 8, 2022
1 parent dedd7ea commit 362eb54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Xamarin.Essentials/AppInfo/AppInfo.ios.tvos.watchos.macos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 362eb54

Please sign in to comment.