summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Utilities
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-04-23 21:21:20 +0100
committersr55 <[email protected]>2018-04-23 21:52:52 +0100
commit128041edb0a8183bb4b27d906e31df4e3dfc32f4 (patch)
treecfabbf8c5f27b12c29fd485fdcf66bd6eb3346db /win/CS/HandBrakeWPF/Utilities
parente845711c6fce01a393bde81541462903a63b749a (diff)
WinGui: Portable Mode: New option to disable startup update check.
Diffstat (limited to 'win/CS/HandBrakeWPF/Utilities')
-rw-r--r--win/CS/HandBrakeWPF/Utilities/Portable.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Utilities/Portable.cs b/win/CS/HandBrakeWPF/Utilities/Portable.cs
index c2dcb6f3e..243f8e5f2 100644
--- a/win/CS/HandBrakeWPF/Utilities/Portable.cs
+++ b/win/CS/HandBrakeWPF/Utilities/Portable.cs
@@ -117,6 +117,22 @@ namespace HandBrakeWPF.Utilities
return storagePath;
}
+ public static bool IsUpdateCheckEnabled()
+ {
+ if (keyPairs.ContainsKey("update.check"))
+ {
+ string updateCheckEnabled = keyPairs["update.check"];
+ if (!string.IsNullOrEmpty(updateCheckEnabled) && updateCheckEnabled.Trim() == "true")
+ {
+ return true;
+ }
+
+ return false;
+ }
+
+ return true;
+ }
+
/// <summary>
/// The get temp directory.
/// </summary>