diff options
author | sr55 <[email protected]> | 2019-12-21 12:22:18 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-12-21 12:22:18 +0000 |
commit | 3b5993b58166a41f3155871afdbe460eb84514f8 (patch) | |
tree | 43cde111de39f6d84aa5eb8683cd0d71ab31cb02 /win/CS/HandBrakeWPF/Services | |
parent | 3de424035dfeceedbe289358abd0359b28ab8dd6 (diff) |
WinGui: Cleanup a bunch of Code Warnings + Fix missing ico resource. #2519
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/Model/Models/SubtitleTrack.cs | 7 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Queue/QueueService.cs | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/SubtitleTrack.cs b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/SubtitleTrack.cs index 3f570fcac..7450f06e9 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/SubtitleTrack.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/SubtitleTrack.cs @@ -173,7 +173,6 @@ namespace HandBrakeWPF.Services.Encode.Model.Models this.NotifyOfPropertyChange(() => this.SourceTrack); if (this.sourceTrack != null) { - this.Track = this.sourceTrack.ToString(); this.SubtitleType = this.sourceTrack.SubtitleType; } @@ -257,12 +256,6 @@ namespace HandBrakeWPF.Services.Encode.Model.Models /// </summary> public SubtitleType SubtitleType { get; set; } - /// <summary> - /// Gets or sets Track. - /// </summary> - [Obsolete("Use SourceTrack Instead")] - public string Track { get; set; } - public string Name { get => this.name; diff --git a/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs b/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs index 5599953c1..bd5bb5960 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/QueueService.cs @@ -177,7 +177,6 @@ namespace HandBrakeWPF.Services.Queue public void ImportJson(string path) { - List<Task> tasks; using (StreamReader reader = new StreamReader(path)) { string fileContent = reader.ReadToEnd(); @@ -197,6 +196,7 @@ namespace HandBrakeWPF.Services.Queue { this.queue.Add(task); } + if (reloadedQueue.Count > 0) { this.InvokeQueueChanged(EventArgs.Empty); |