diff --git a/Flow.Launcher/Helper/WindowsMediaPlayerHelper.cs b/Flow.Launcher/Helper/WindowsMediaPlayerHelper.cs index 2da2cf034..b05409de2 100644 --- a/Flow.Launcher/Helper/WindowsMediaPlayerHelper.cs +++ b/Flow.Launcher/Helper/WindowsMediaPlayerHelper.cs @@ -1,9 +1,12 @@ -using Microsoft.Win32; +using System; +using Microsoft.Win32; namespace Flow.Launcher.Helper; internal static class WindowsMediaPlayerHelper { + private static readonly string ClassName = nameof(WindowsMediaPlayerHelper); + internal static bool IsWindowsMediaPlayerInstalled() { try @@ -11,8 +14,9 @@ internal static class WindowsMediaPlayerHelper using var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\MediaPlayer"); return key?.GetValue("Installation Directory") != null; } - catch + catch (Exception e) { + App.API.LogException(ClassName, "Failed to check if Windows Media Player is installed", e); return false; } }