mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Output log info
This commit is contained in:
parent
be15b836fc
commit
9e24d2cb91
1 changed files with 6 additions and 2 deletions
|
|
@ -1,9 +1,12 @@
|
||||||
using Microsoft.Win32;
|
using System;
|
||||||
|
using Microsoft.Win32;
|
||||||
|
|
||||||
namespace Flow.Launcher.Helper;
|
namespace Flow.Launcher.Helper;
|
||||||
|
|
||||||
internal static class WindowsMediaPlayerHelper
|
internal static class WindowsMediaPlayerHelper
|
||||||
{
|
{
|
||||||
|
private static readonly string ClassName = nameof(WindowsMediaPlayerHelper);
|
||||||
|
|
||||||
internal static bool IsWindowsMediaPlayerInstalled()
|
internal static bool IsWindowsMediaPlayerInstalled()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
@ -11,8 +14,9 @@ internal static class WindowsMediaPlayerHelper
|
||||||
using var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\MediaPlayer");
|
using var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\MediaPlayer");
|
||||||
return key?.GetValue("Installation Directory") != null;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue