diff options
author | sr55 <[email protected]> | 2018-04-23 21:21:20 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-04-23 21:52:52 +0100 |
commit | 128041edb0a8183bb4b27d906e31df4e3dfc32f4 (patch) | |
tree | cfabbf8c5f27b12c29fd485fdcf66bd6eb3346db /win/CS/HandBrakeWPF/Utilities | |
parent | e845711c6fce01a393bde81541462903a63b749a (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.cs | 16 |
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> |