From 8f5b2c241ec1bc0e9c97176b591cf342dcc10da2 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Thu, 25 Jul 2019 17:24:57 -0700 Subject: [PATCH] Use 'Platform.IsWindowsDesktop' instead of checking both NanoServer and IoT (#10205) --- .../WindowsTaskbarJumpList/TaskbarJumpList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.ConsoleHost/WindowsTaskbarJumpList/TaskbarJumpList.cs b/src/Microsoft.PowerShell.ConsoleHost/WindowsTaskbarJumpList/TaskbarJumpList.cs index e6a5c2aa71..58f639d342 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/WindowsTaskbarJumpList/TaskbarJumpList.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/WindowsTaskbarJumpList/TaskbarJumpList.cs @@ -23,7 +23,7 @@ namespace Microsoft.PowerShell { // The STA apartment state is not supported on NanoServer and Windows IoT. // Plus, there is not need to create jump list in those environment anyways. - if (Platform.IsNanoServer || Platform.IsIoT) + if (!Platform.IsWindowsDesktop) { return; }