From 0de77cafc014802fb2bc368d862eca5f7b4613fe Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov <10544660+farag2@users.noreply.github.com> Date: Fri, 25 Sep 2020 15:06:23 +0300 Subject: [PATCH] Add files via upload --- Sophia/Sophia.psm1 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Sophia/Sophia.psm1 b/Sophia/Sophia.psm1 index 565d3e7d..0de49eed 100644 --- a/Sophia/Sophia.psm1 +++ b/Sophia/Sophia.psm1 @@ -5797,10 +5797,6 @@ function RemoveRichTextDocumentNewContext { Remove-Item -Path Registry::HKEY_CLASSES_ROOT\.rtf\ShellNew -Force -ErrorAction Ignore } - else - { - Get-WindowsCapability -Online -Name "Microsoft.Windows.WordPad*" | Add-WindowsCapability -Online - } } # Restore the "Rich Text Document" item in the "New" context menu