diff options
author | sr55 <[email protected]> | 2020-07-24 22:02:50 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2020-07-24 22:02:50 +0100 |
commit | 2974cc767def7a4651fcd1b5922730c02af0d1bb (patch) | |
tree | 507248a20c63980c96d6c9e895924617fc769553 /win/CS/HandBrakeWPF/Views/QueueView.xaml.cs | |
parent | 88a5af3e108e1839ec86c7a08d77f13a9e45f6ed (diff) |
WinGui: Add back lost functionality on the new queue design. There is now a Stop button that allows for existing jobs to be completed before stopping the queue. When done action will also be honoured. #2974
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/QueueView.xaml.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/QueueView.xaml.cs | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs b/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs index 9ffdad8eb..1c6674dd5 100644 --- a/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs @@ -1,33 +1,24 @@ // --------------------------------------------------------------------------------------------------------------------
-// <copyright file="QueueTwoView.xaml.cs" company="HandBrake Project (http://handbrake.fr)">
+// <copyright file="QueueView.xaml.cs" company="HandBrake Project (http://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
-// <summary>
-// Interaction logic for QueueTwoView.xaml
-// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrakeWPF.Views
{
- using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
+ using System.Windows.Media.Animation;
using HandBrakeWPF.Services.Queue.Model;
using HandBrakeWPF.ViewModels;
- /// <summary>
- /// Interaction logic for VideoView
- /// </summary>
public partial class QueueView : Window
{
private QueueTask mouseActiveQueueTask;
- /// <summary>
- /// Initializes a new instance of the <see cref="QueueView"/> class.
- /// </summary>
public QueueView()
{
this.InitializeComponent();
@@ -165,6 +156,11 @@ namespace HandBrakeWPF.Views }
}
+ private void QueueItem_PauseJobs(object sender, RoutedEventArgs e)
+ {
+ ((QueueViewModel)this.DataContext).PauseJob(this.mouseActiveQueueTask);
+ }
+
private void QueueItem_Edit(object sender, RoutedEventArgs e)
{
((QueueViewModel)this.DataContext).EditJob(this.mouseActiveQueueTask);
|