Skip to content

Commit 9e24d2c

Browse files
committed
Output log info
1 parent be15b83 commit 9e24d2c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Flow.Launcher/Helper/WindowsMediaPlayerHelper.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
using Microsoft.Win32;
1+
using System;
2+
using Microsoft.Win32;
23

34
namespace Flow.Launcher.Helper;
45

56
internal static class WindowsMediaPlayerHelper
67
{
8+
private static readonly string ClassName = nameof(WindowsMediaPlayerHelper);
9+
710
internal static bool IsWindowsMediaPlayerInstalled()
811
{
912
try
1013
{
1114
using var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\MediaPlayer");
1215
return key?.GetValue("Installation Directory") != null;
1316
}
14-
catch
17+
catch (Exception e)
1518
{
19+
App.API.LogException(ClassName, "Failed to check if Windows Media Player is installed", e);
1620
return false;
1721
}
1822
}

0 commit comments

Comments
 (0)