From: sr55 <sr55.hb@outlook.com> Date: Tue, 26 Jun 2012 20:58:31 +0000 (+0000) Subject: WinGui: More UI tweaks and improvements. X-Git-Tag: 0.9.9~533 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39866ea0d97700256a6c88aad0a4dcddc900a3b0;p=handbrake WinGui: More UI tweaks and improvements. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4782 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- 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" />