summaryrefslogtreecommitdiffstats
path: root/win/C#/HandBrake.ApplicationServices/Services/Encode.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-07-17 22:33:00 +0000
committersr55 <[email protected]>2010-07-17 22:33:00 +0000
commit706ac8f30679436a97bbbf5ad3db214d9bc945a9 (patch)
treeaa4c4471a27f185c8da59cad3cbc8b7c223af41f /win/C#/HandBrake.ApplicationServices/Services/Encode.cs
parent561aa6ec3b4f018a4e76d1a57c7ffd6f0e7ded70 (diff)
WinGui:
- ApplicationServices dll no longer uses Settings.settings git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3446 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/HandBrake.ApplicationServices/Services/Encode.cs')
-rw-r--r--win/C#/HandBrake.ApplicationServices/Services/Encode.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/win/C#/HandBrake.ApplicationServices/Services/Encode.cs b/win/C#/HandBrake.ApplicationServices/Services/Encode.cs
index c21d83722..87b0e0027 100644
--- a/win/C#/HandBrake.ApplicationServices/Services/Encode.cs
+++ b/win/C#/HandBrake.ApplicationServices/Services/Encode.cs
@@ -152,7 +152,7 @@ namespace HandBrake.ApplicationServices.Services
if (enableLogging)
SetupLogging(encJob);
- if (Settings.Default.preventSleep)
+ if (Init.PreventSleep)
{
Win32.PreventSleep();
}
@@ -163,7 +163,7 @@ namespace HandBrake.ApplicationServices.Services
RedirectStandardOutput = true,
RedirectStandardError = enableLogging ? true : false,
UseShellExecute = false,
- CreateNoWindow = !Settings.Default.showCliForInGuiEncodeStatus ? true : false
+ CreateNoWindow = !Init.ShowCliForInGuiEncodeStatus ? true : false
};
this.HbProcess = Process.Start(cliStart);
@@ -185,7 +185,7 @@ namespace HandBrake.ApplicationServices.Services
}
// Set the Process Priority
- switch (Settings.Default.processPriority)
+ switch (Init.ProcessPriority)
{
case "Realtime":
this.HbProcess.PriorityClass = ProcessPriorityClass.RealTime;
@@ -288,13 +288,13 @@ namespace HandBrake.ApplicationServices.Services
File.Copy(tempLogFile, Path.Combine(logDir, encodeLogFile));
// Save a copy of the log file in the same location as the enocde.
- if (Settings.Default.saveLogWithVideo)
+ if (Init.SaveLogWithVideo)
File.Copy(tempLogFile, Path.Combine(encodeDestinationPath, encodeLogFile));
// Save a copy of the log file to a user specified location
- if (Directory.Exists(Settings.Default.saveLogPath))
- if (Settings.Default.saveLogPath != String.Empty && Settings.Default.saveLogToSpecifiedPath)
- File.Copy(tempLogFile, Path.Combine(Settings.Default.saveLogPath, encodeLogFile));
+ if (Directory.Exists(Init.SaveLogPath))
+ if (Init.SaveLogPath != String.Empty && Init.SaveLogToSpecifiedPath)
+ File.Copy(tempLogFile, Path.Combine(Init.SaveLogPath, encodeLogFile));
}
catch (Exception exc)
{
@@ -325,7 +325,7 @@ namespace HandBrake.ApplicationServices.Services
windowsSeven.SetTaskBarProgressToNoProgress();
}
- if (Properties.Settings.Default.preventSleep)
+ if (Init.PreventSleep)
{
Win32.AllowSleep();
}