/// <summary>\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
+ ///Do you wish to continue?.\r
/// </summary>\r
public static string Main_AutoAdd_AudioAndSubWarning {\r
get {\r
}\r
}\r
\r
+ /// <summary>\r
+ /// Looks up a localized string similar to Unable to add the last job to the queue. Do you wish to proceed trying to add the rest?.\r
+ /// </summary>\r
+ public static string Main_ContinueAddingToQueue {\r
+ get {\r
+ return ResourceManager.GetString("Main_ContinueAddingToQueue", resourceCulture);\r
+ }\r
+ }\r
+ \r
/// <summary>\r
/// Looks up a localized string similar to The current file already exists, do you wish to overwrite it?.\r
/// </summary>\r
}\r
}\r
\r
+ /// <summary>\r
+ /// Looks up a localized string similar to The file '{0}' already exists!\r
+ ///Would you like to overwrite it?.\r
+ /// </summary>\r
+ public static string Main_QueueOverwritePrompt {\r
+ get {\r
+ return ResourceManager.GetString("Main_QueueOverwritePrompt", resourceCulture);\r
+ }\r
+ }\r
+ \r
/// <summary>\r
/// Looks up a localized string similar to Queue Paused.\r
/// </summary>\r
<data name="Main_AutoAdd_AudioAndSubWarning" xml:space="preserve">\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
+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
<data name="OsVersionWarning" xml:space="preserve">\r
<value>HandBrake requires Windows 7 or later to run. Version 0.9.9 (XP) and 0.10.5 (Vista) was the last version to support these versions.</value>\r
</data>\r
+ <data name="Main_ContinueAddingToQueue" xml:space="preserve">\r
+ <value>Unable to add the last job to the queue. Do you wish to proceed trying to add the rest?</value>\r
+ </data>\r
+ <data name="Main_QueueOverwritePrompt" xml:space="preserve">\r
+ <value>The file '{0}' already exists!\r
+Would you like to overwrite it?</value>\r
+ </data>\r
</root>
\ No newline at end of file
this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.SourceName, this.selectedPreset);\r
}\r
}\r
+\r
this.NotifyOfPropertyChange(() => this.CurrentTask);\r
\r
this.Duration = this.DurationCalculation();\r
return false;\r
}\r
\r
+ if (File.Exists(this.CurrentTask.Destination))\r
+ {\r
+ MessageBoxResult result = this.errorService.ShowMessageBox(string.Format(Resources.Main_QueueOverwritePrompt, Path.GetFileName(this.CurrentTask.Destination)), Resources.Question, MessageBoxButton.YesNo, MessageBoxImage.Question);\r
+ if (result == MessageBoxResult.No)\r
+ {\r
+ return false;\r
+ } \r
+ }\r
+\r
if (!DirectoryUtilities.IsWritable(Path.GetDirectoryName(this.CurrentTask.Destination), true, this.errorService))\r
{\r
this.errorService.ShowMessageBox(Resources.Main_NoPermissionsOrMissingDirectory, Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);\r
\r
if (this.CurrentTask != null && this.CurrentTask.SubtitleTracks != null && this.CurrentTask.SubtitleTracks.Count > 0)\r
{\r
- if (this.SubtitleViewModel.SubtitleBehaviours == null || this.SubtitleViewModel.SubtitleBehaviours.SelectedBehaviour == SubtitleBehaviourModes.None)\r
+ if ((this.SubtitleViewModel.SubtitleBehaviours == null || this.SubtitleViewModel.SubtitleBehaviours.SelectedBehaviour == SubtitleBehaviourModes.None)\r
+ && !(this.CurrentTask.SubtitleTracks.Count == 1 && this.CurrentTask.SubtitleTracks.First().SubtitleType == SubtitleType.ForeignAudioSearch))\r
{\r
- System.Windows.MessageBoxResult result = this.errorService.ShowMessageBox(\r
+ MessageBoxResult result = this.errorService.ShowMessageBox(\r
Resources.Main_AutoAdd_AudioAndSubWarning,\r
Resources.Warning,\r
MessageBoxButton.YesNo,\r
foreach (Title title in this.ScannedSource.Titles)\r
{\r
this.SelectedTitle = title;\r
- this.AddToQueue();\r
+ if (!this.AddToQueue())\r
+ {\r
+ MessageBoxResult result = this.errorService.ShowMessageBox(Resources.Main_ContinueAddingToQueue, Resources.Question, MessageBoxButton.YesNo, MessageBoxImage.Question);\r
+\r
+ if (result == MessageBoxResult.No)\r
+ {\r
+ break;\r
+ }\r
+ }\r
}\r
}\r
\r