mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Revert show warning logic
This commit is contained in:
parent
82ca8c3175
commit
d4b3f1667c
2 changed files with 10 additions and 13 deletions
|
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
|||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Security.Policy;
|
||||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
|
|
@ -187,17 +186,15 @@ public partial class SettingsPaneThemeViewModel : BaseModel
|
|||
get => Settings.UseSound;
|
||||
set => Settings.UseSound = value;
|
||||
}
|
||||
public bool CheckMediaPlayer
|
||||
|
||||
public bool ShowWMPWarning
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Settings.WMPInstalled)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else { return false; }
|
||||
}
|
||||
set { }
|
||||
get => !Settings.WMPInstalled;
|
||||
}
|
||||
|
||||
public bool EnableVolumeAdjustment
|
||||
{
|
||||
get => Settings.WMPInstalled;
|
||||
}
|
||||
|
||||
public double SoundEffectVolume
|
||||
|
|
|
|||
|
|
@ -440,7 +440,7 @@
|
|||
<cc:Card
|
||||
Title="{DynamicResource SoundEffectVolume}"
|
||||
Icon=""
|
||||
IsEnabled="{Binding CheckMediaPlayer}"
|
||||
IsEnabled="{Binding EnableVolumeAdjustment}"
|
||||
Sub="{DynamicResource SoundEffectVolumeTip}"
|
||||
Visibility="{Binding UseSound, Converter={StaticResource BoolToVisibilityConverter}}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
|
|
@ -469,7 +469,7 @@
|
|||
BorderBrush="{DynamicResource Color03B}"
|
||||
BorderThickness="0,1,0,0"
|
||||
CornerRadius="5 5 5 5"
|
||||
Visibility="{Binding CheckMediaPlayer, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter='!'}">
|
||||
Visibility="{Binding ShowWMPWarning, Converter={StaticResource BoolToVisibilityConverter}}">
|
||||
<Grid VerticalAlignment="Center">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="58" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue