Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwarwickmm <warwickmm@users.noreply.github.com>2022-04-17 05:33:59 +0300
committerGitHub <noreply@github.com>2022-04-17 05:33:59 +0300
commiteea9e16a16702b1a8ca289a94c0613471051bb9e (patch)
tree3c214ea9e15f7146236446fa3176f50dfb9e45f4
parent080a423a58d8a46fc697e9ca485b9f78651ca7c5 (diff)
parent52213c1ef869994af99af7d3f7de61cca08ce65c (diff)
Merge pull request #4704 from AxeOfMen/BypassUpdateOnDebug
Bypass auto-update when running in a debug environment
-rw-r--r--Duplicati/Library/AutoUpdater/UpdaterManager.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Duplicati/Library/AutoUpdater/UpdaterManager.cs b/Duplicati/Library/AutoUpdater/UpdaterManager.cs
index 8d7b90955..0d8f6f20f 100644
--- a/Duplicati/Library/AutoUpdater/UpdaterManager.cs
+++ b/Duplicati/Library/AutoUpdater/UpdaterManager.cs
@@ -24,6 +24,7 @@ using System.Threading.Tasks;
using Duplicati.Library.Interface;
using Duplicati.Library.Common.IO;
using Duplicati.Library.Common;
+using System.Diagnostics;
namespace Duplicati.Library.AutoUpdater
{
@@ -56,7 +57,7 @@ namespace Duplicati.Library.AutoUpdater
? System.IO.Path.GetDirectoryName(Duplicati.Library.Utility.Utility.getEntryAssembly().Location)
: Environment.ExpandEnvironmentVariables(System.Environment.GetEnvironmentVariable(string.Format(BASEINSTALLDIR_ENVNAME_TEMPLATE, APPNAME)));
- private static readonly bool DISABLE_UPDATE_DOMAIN = Utility.Utility.ParseBool(Environment.GetEnvironmentVariable(string.Format(SKIPUPDATE_ENVNAME_TEMPLATE, APPNAME)), false);
+ private static readonly bool DISABLE_UPDATE_DOMAIN = Debugger.IsAttached || Utility.Utility.ParseBool(Environment.GetEnvironmentVariable(string.Format(SKIPUPDATE_ENVNAME_TEMPLATE, APPNAME)), false);
public static bool RequiresRespawn { get; set; }