diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml
index bda86e481..7aca36e22 100644
--- a/Flow.Launcher/Languages/en.xaml
+++ b/Flow.Launcher/Languages/en.xaml
@@ -158,6 +158,7 @@
Play a small sound when the search window opens
Sound Effect Volume
Adjust the volume of the sound effect
+ Flow Launcher can't play sound because "Windows Media Player" doesn't exist on your system. If you need sound, install WMP.
Animation
Use Animation in UI
Animation Speed
diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml
index 84b91e312..fd999585d 100644
--- a/Flow.Launcher/SettingWindow.xaml
+++ b/Flow.Launcher/SettingWindow.xaml
@@ -2561,6 +2561,40 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs
index 8144c8ff8..58ffbb149 100644
--- a/Flow.Launcher/SettingWindow.xaml.cs
+++ b/Flow.Launcher/SettingWindow.xaml.cs
@@ -24,6 +24,7 @@ using KeyEventArgs = System.Windows.Input.KeyEventArgs;
using MessageBox = System.Windows.MessageBox;
using TextBox = System.Windows.Controls.TextBox;
using ThemeManager = ModernWpf.ThemeManager;
+using System.Diagnostics;
namespace Flow.Launcher
{
@@ -63,9 +64,18 @@ namespace Flow.Launcher
viewModel.PropertyChanged += new PropertyChangedEventHandler(SettingsWindowViewModelChanged);
+ CheckMediaPlayer();
InitializePosition();
}
+ private void CheckMediaPlayer()
+ {
+
+ if (!File.Exists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "Windows Media Player", "wmplayer.exe")))
+ {
+ /* Binding WMPWarning visibility */
+ }
+ }
private void SettingsWindowViewModelChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == nameof(viewModel.ExternalPlugins))
@@ -294,8 +304,8 @@ namespace Flow.Launcher
}
private void window_MouseDown(object sender, MouseButtonEventArgs e) /* for close hotkey popup */
- {
- if (Keyboard.FocusedElement is not TextBox textBox)
+ {
+ if (Keyboard.FocusedElement is not TextBox textBox)
{
return;
}