summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Helpers
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-03-17 21:33:51 +0000
committersr55 <[email protected]>2017-03-17 21:33:58 +0000
commit82a75bd3d9d5db5432275e9e83e1b65e7b7bdbb6 (patch)
tree79f95c5655be0821d5a4ff33f43bb3d5f471da5f /win/CS/HandBrakeWPF/Helpers
parentd9d6e28f2500688d7b6e0fc4b1e5396f237b99cf (diff)
WinGui: Make the Queue Storage Nightly aware. Also fix an issue with Queue and Log Files not being stored correctly for Portable mode. #267
Diffstat (limited to 'win/CS/HandBrakeWPF/Helpers')
-rw-r--r--win/CS/HandBrakeWPF/Helpers/QueueRecoveryHelper.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/Helpers/QueueRecoveryHelper.cs b/win/CS/HandBrakeWPF/Helpers/QueueRecoveryHelper.cs
index 0604de331..01dd64667 100644
--- a/win/CS/HandBrakeWPF/Helpers/QueueRecoveryHelper.cs
+++ b/win/CS/HandBrakeWPF/Helpers/QueueRecoveryHelper.cs
@@ -45,7 +45,7 @@ namespace HandBrakeWPF.Helpers
{
try
{
- string tempPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"HandBrake\");
+ string tempPath = DirectoryUtilities.GetUserStoragePath(VersionHelper.IsNightly());
List<string> queueFiles = new List<string>();
DirectoryInfo info = new DirectoryInfo(tempPath);
IEnumerable<FileInfo> logFiles = info.GetFiles("*.xml").Where(f => f.Name.StartsWith("hb_queue_recovery"));
@@ -127,7 +127,7 @@ namespace HandBrakeWPF.Helpers
/// </returns>
public static bool RecoverQueue(IQueueProcessor encodeQueue, IErrorService errorService, bool silentRecovery)
{
- string appDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"HandBrake\");
+ string appDataPath = DirectoryUtilities.GetUserStoragePath(VersionHelper.IsNightly());
List<string> queueFiles = CheckQueueRecovery();
MessageBoxResult result = MessageBoxResult.None;
if (!silentRecovery)
@@ -173,7 +173,7 @@ namespace HandBrakeWPF.Helpers
}
// Recover the Queue
- encodeQueue.RestoreQueue(appDataPath + file);
+ encodeQueue.RestoreQueue(Path.Combine(appDataPath, file));
isRecovered = true;
// Cleanup