Shuffle: Add clear queue and play queue button
This commit is contained in:
@ -81,7 +81,7 @@
|
||||
<GroupBox.Header>
|
||||
<TextBlock>
|
||||
<emoji:EmojiInline Text="➕"/>
|
||||
<Run Text="{x:Static properties:Resources.Shuffle_Queue}"/>
|
||||
<Run Text="{x:Static properties:Resources.Queue_Management}"/>
|
||||
</TextBlock>
|
||||
</GroupBox.Header>
|
||||
<StackPanel Orientation="Vertical" Margin="5,5,5,0">
|
||||
@ -96,6 +96,11 @@
|
||||
</TextBlock>
|
||||
<TextBlock x:Name="SearchStatus2" Text="{x:Static properties:Resources.Shuffle_ButtonMessage3}" Margin="3,3,0,0" FontStyle="Italic" Visibility="Collapsed"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal" Margin="0,15,0,0">
|
||||
<Button Content="{x:Static properties:Resources.Clear_Queue}" Click="ClearQueue_Clicked" Padding="5, 2" HorizontalAlignment="Left" FocusVisualStyle="{x:Null}"/>
|
||||
<Button Content="{x:Static properties:Resources.Play_Queue}" Click="StartQueue_Clicked" Padding="5, 2" Margin="5, 0" HorizontalAlignment="Left" FocusVisualStyle="{x:Null}"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
|
@ -375,6 +375,16 @@ namespace unison
|
||||
AddToQueue();
|
||||
}
|
||||
|
||||
public void ClearQueue_Clicked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
_mpd.ClearQueue();
|
||||
}
|
||||
|
||||
public void StartQueue_Clicked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
_mpd.PlayCommand();
|
||||
}
|
||||
|
||||
public bool GetContinuous()
|
||||
{
|
||||
return _continuous;
|
||||
|
Reference in New Issue
Block a user