Skip to content

Commit

Permalink
Rename RestrictedMode to SimpleMode
Browse files Browse the repository at this point in the history
  • Loading branch information
geloczi committed Jan 5, 2022
1 parent cebc098 commit 14e9158
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SynAudio/Models/Config/SettingsModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class SettingsModel

public bool UpdateLibraryOnStartup { get; set; } = true;

public bool RestrictedMode { get; set; }
public bool SimpleMode { get; set; }

[JsonConverter(typeof(StringEnumConverter))]
public Styles.Theme Theme { get; set; } = Styles.Theme.Dark;
Expand Down
2 changes: 1 addition & 1 deletion SynAudio/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public int PlayerVolume
set
{
SetPlayerVolumeFromPercentage(value);
if (!Settings.RestrictedMode)
if (!Settings.SimpleMode)
Settings.Volume = value;
}
}
Expand Down
6 changes: 3 additions & 3 deletions SynAudio/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
Content="Home"/>
<Button Style="{StaticResource LeftPanelButton}"
Command="{Binding OpenSettingsCommand}"
Visibility="{Binding Settings.RestrictedMode, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter=true}"
Visibility="{Binding Settings.SimpleMode, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter=true}"
Content="Settings"/>

<Separator Style="{StaticResource ListSeparator}"/>
Expand Down Expand Up @@ -326,7 +326,7 @@
ItemContainerStyle="{StaticResource MyComboBoxItem}"
ItemsSource="{Binding TranscodeModes}"
SelectedItem="{Binding Settings.Transcoding, Mode=TwoWay}"
Visibility="{Binding Settings.RestrictedMode, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter=true}"
Visibility="{Binding Settings.SimpleMode, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter=true}"
HorizontalAlignment="Stretch"
Margin="0,5,0,0"/>
<!--<Button x:Name="btnSynchronizeLibrary" Command="{Binding SynchronizeLibraryCommand}" HorizontalAlignment="Stretch">Sync Library</Button>-->
Expand Down Expand Up @@ -744,7 +744,7 @@
Value="{Binding PlayerVolume}"
Orientation="Vertical"
Margin="0"
Visibility="{Binding Settings.RestrictedMode, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter=true}"/>
Visibility="{Binding Settings.SimpleMode, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter=true}"/>
</StackPanel>
</StackPanel>

Expand Down

0 comments on commit 14e9158

Please sign in to comment.