}\r
\r
/// <summary>\r
- /// Looks up a localized string similar to Warning: It is not currently possible to use this feature if you require specific subtitle or audio tracks that the automatic selection feature (see options) doesn't support! Tracks are reset with every new source / title selected..\r
+ /// Looks up a localized string similar to Warning: If you wish to have subtitles added to each item you are about to queue, please verify that you have the subtitle defaults setup correctly on the subtitles tab.\r
+ /// \r
+ /// Do you wish to continue?.\r
/// </summary>\r
public static string Main_AutoAdd_AudioAndSubWarning {\r
get {\r
<value>Error</value>\r
</data>\r
<data name="Main_AutoAdd_AudioAndSubWarning" xml:space="preserve">\r
- <value>Warning: It is not currently possible to use this feature if you require specific subtitle or audio tracks that the automatic selection feature (see options) doesn't support! Tracks are reset with every new source / title selected.</value>\r
+ <value>Warning: If you wish to have subtitles added to each item you are about to queue, please verify that you have the subtitle defaults setup correctly on the subtitles tab.\r
+ \r
+ Do you wish to continue?</value>\r
</data>\r
<data name="Main_TurnOnAutoFileNaming" xml:space="preserve">\r
<value>You must turn on automatic file naming AND set a default path in preferences before you can add to the queue.</value>\r
using System.Linq;\r
using System.Threading;\r
using System.Windows;\r
+ using System.Windows.Forms;\r
using System.Windows.Input;\r
\r
using Caliburn.Micro;\r
using HandBrakeWPF.ViewModels.Interfaces;\r
using HandBrakeWPF.Views;\r
\r
- using Microsoft.Win32;\r
-\r
using Ookii.Dialogs.Wpf;\r
\r
using Action = System.Action;\r
+ using Application = System.Windows.Application;\r
+ using DataFormats = System.Windows.DataFormats;\r
+ using DragEventArgs = System.Windows.DragEventArgs;\r
using Execute = Caliburn.Micro.Execute;\r
using LogManager = HandBrakeWPF.Helpers.LogManager;\r
+ using MessageBox = System.Windows.MessageBox;\r
+ using OpenFileDialog = Microsoft.Win32.OpenFileDialog;\r
+ using SaveFileDialog = Microsoft.Win32.SaveFileDialog;\r
\r
/// <summary>\r
/// HandBrakes Main Window\r
\r
if (this.CurrentTask != null && this.CurrentTask.SubtitleTracks != null && this.CurrentTask.SubtitleTracks.Count > 0)\r
{\r
- this.errorService.ShowMessageBox(Resources.Main_AutoAdd_AudioAndSubWarning, Resources.Warning, MessageBoxButton.OK, MessageBoxImage.Error);\r
+ if (this.SubtitleViewModel.SubtitleBehaviours == null || this.SubtitleViewModel.SubtitleBehaviours.SelectedBehaviour == SubtitleBehaviourModes.None)\r
+ {\r
+ System.Windows.MessageBoxResult result = this.errorService.ShowMessageBox(\r
+ Resources.Main_AutoAdd_AudioAndSubWarning,\r
+ Resources.Warning,\r
+ MessageBoxButton.YesNo,\r
+ MessageBoxImage.Warning);\r
+\r
+ if (result == MessageBoxResult.No)\r
+ {\r
+ return;\r
+ }\r
+ }\r
}\r
\r
foreach (Title title in this.ScannedSource.Titles)\r