diff options
Diffstat (limited to 'win/CS')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 6 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs | 7 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/QueueView.xaml | 2 |
3 files changed, 12 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 54c0d8e1e..cd5d06dbf 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -399,6 +399,9 @@ namespace HandBrakeWPF.ViewModels this.SubtitleViewModel.SetPreset(this.SelectedPreset, this.CurrentTask);
this.ChaptersViewModel.SetPreset(this.SelectedPreset, this.CurrentTask);
this.AdvancedViewModel.SetPreset(this.SelectedPreset, this.CurrentTask);
+
+ // Do this again to force an update for m4v/mp4 selection
+ this.SelectedOutputFormat = selectedPreset.Task.OutputFormat;
}
this.NotifyOfPropertyChange(() => this.SelectedPreset);
@@ -1181,7 +1184,9 @@ namespace HandBrakeWPF.ViewModels }
dialog.ShowDialog();
+ this.Destination = dialog.FileName;
+ // Set the Extension Dropdown. This will also set Mp4/m4v correctly.
if (!string.IsNullOrEmpty(dialog.FileName))
{
switch (Path.GetExtension(dialog.FileName))
@@ -1197,7 +1202,6 @@ namespace HandBrakeWPF.ViewModels break;
}
- this.Destination = dialog.FileName;
this.NotifyOfPropertyChange(() => this.CurrentTask);
}
}
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs index e1c8fccb7..abcf289e5 100644 --- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs @@ -201,7 +201,12 @@ namespace HandBrakeWPF.ViewModels /// </summary>
public void Clear()
{
- this.queueProcessor.QueueManager.Clear();
+ MessageBoxResult result = this.errorService.ShowMessageBox(
+ "Are you sure you wish to clear the queue?", "Confirm", MessageBoxButton.YesNo, MessageBoxImage.Warning);
+ if (result == MessageBoxResult.Yes)
+ {
+ this.queueProcessor.QueueManager.Clear();
+ }
}
/// <summary>
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml b/win/CS/HandBrakeWPF/Views/QueueView.xaml index 7ef652b29..8b3b31f03 100644 --- a/win/CS/HandBrakeWPF/Views/QueueView.xaml +++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml @@ -146,8 +146,8 @@ <ListBox.ContextMenu>
<ContextMenu>
- <MenuItem cal:Message.Attach="[Event Click] = [Action Clear]" Header="Clear" />
<MenuItem cal:Message.Attach="[Event Click] = [Action ClearCompleted]" Header="Clear Completed" />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action Clear]" Header="Clear" />
<Separator />
<MenuItem cal:Message.Attach="[Event Click] = [Action Import]" Header="Import Queue" />
<MenuItem cal:Message.Attach="[Event Click] = [Action Export]" Header="Export Queue" />
|