summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-05-29 19:21:40 +0100
committersr55 <[email protected]>2017-05-29 19:21:40 +0100
commitec1ae47d59d52315d7279bafcb883d69803ee96e (patch)
treece1a20af0b2218cadf2d0794622b04e39ef975f6 /win/CS/HandBrakeWPF/ViewModels
parent05faa1f855472e8783905b7fa2a8ce1ad4267722 (diff)
WinGui: Remove the legacy XML based queue import/export funcitonality. One can still export to JSON for the CLI but currently import is still not supported for JSON.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs15
1 files changed, 4 insertions, 11 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
index 0c984e032..4cd2948db 100644
--- a/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/QueueViewModel.cs
@@ -392,22 +392,15 @@ namespace HandBrakeWPF.ViewModels
{
SaveFileDialog dialog = new SaveFileDialog
{
- Filter = "Legacy Queue Files (*.hbq)|*.hbq|Json for CLI (*.json)|*.json",
+ Filter = "Json (*.json)|*.json",
OverwritePrompt = true,
- DefaultExt = ".hbq",
+ DefaultExt = ".json",
AddExtension = true
};
if (dialog.ShowDialog() == true)
{
- if (Path.GetExtension(dialog.FileName).ToLower().Trim() == ".json")
- {
- this.queueProcessor.ExportJson(dialog.FileName);
- }
- else
- {
- this.queueProcessor.BackupQueue(dialog.FileName);
- }
+ this.queueProcessor.ExportJson(dialog.FileName);
}
}
@@ -416,7 +409,7 @@ namespace HandBrakeWPF.ViewModels
/// </summary>
public void Import()
{
- OpenFileDialog dialog = new OpenFileDialog { Filter = "Legacy Queue Files (*.hbq)|*.hbq", CheckFileExists = true };
+ OpenFileDialog dialog = new OpenFileDialog { Filter = "Json (*.json)|*.json", CheckFileExists = true };
if (dialog.ShowDialog() == true)
{
this.queueProcessor.RestoreQueue(dialog.FileName);