diff options
author | Scott <[email protected]> | 2020-04-26 12:14:42 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-26 12:14:42 +0100 |
commit | 1f09b740f80dac1ab1e0b17519b2a7e4f3440fa4 (patch) | |
tree | c6d3102080111ee699ef6f91c3571ff611a1a882 /win/CS/HandBrakeWPF/Services/Queue/Model/QueueTask.cs | |
parent | f8b3478d8b7a1c9284c4339b32ce8f7bdc5d54b3 (diff) |
Multi instance (#2791)
WinGui: Refactoring and laying the groundwork in many parts of the UI code in preparation for supporting multiple concurrent jobs running.
- Add support for multiple log files to the Activity log screen and refactor usages of ILog. Each Encode instance will now get a separate instance instead of there being one global instance.
- Retire the Mini Display Window. It's very rarely used, not very easy to even find and of limited value.
- Add the preferences code for the Simultaneous encode setting.
Locked to one instance for now. This will allow us to test with users that existing functionality still works fine.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Queue/Model/QueueTask.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Queue/Model/QueueTask.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Queue/Model/QueueTask.cs b/win/CS/HandBrakeWPF/Services/Queue/Model/QueueTask.cs index 3ee126ce9..208c721e4 100644 --- a/win/CS/HandBrakeWPF/Services/Queue/Model/QueueTask.cs +++ b/win/CS/HandBrakeWPF/Services/Queue/Model/QueueTask.cs @@ -35,6 +35,7 @@ namespace HandBrakeWPF.Services.Queue.Model id = id + 1;
this.Id = string.Format("{0}.{1}", GeneralUtilities.ProcessId, id);
this.Statistics = new QueueStats();
+ this.JobProgress = new QueueProgressStatus();
}
public QueueTask(EncodeTask task, HBConfiguration configuration, string scannedSourcePath, Preset currentPreset, bool isPresetModified)
@@ -57,6 +58,7 @@ namespace HandBrakeWPF.Services.Queue.Model this.Statistics = new QueueStats();
this.TaskId = Guid.NewGuid().ToString();
+ this.JobProgress = new QueueProgressStatus();
}
[JsonProperty]
@@ -81,6 +83,7 @@ namespace HandBrakeWPF.Services.Queue.Model this.status = value;
this.NotifyOfPropertyChange(() => this.Status);
this.NotifyOfPropertyChange(() => this.ShowEncodeProgress);
+ this.NotifyOfPropertyChange(() => this.IsJobStatusVisible);
}
}
@@ -94,6 +97,12 @@ namespace HandBrakeWPF.Services.Queue.Model public QueueStats Statistics { get; set; }
[JsonIgnore]
+ public QueueProgressStatus JobProgress { get; set; }
+
+ [JsonIgnore]
+ public bool IsJobStatusVisible => this.Status == QueueItemStatus.InProgress;
+
+ [JsonIgnore]
public string SelectedPresetKey
{
get
|