Отключено обновление в режиме отладки

This commit is contained in:
Danil Kislov
2019-03-19 11:31:47 +03:00
parent 02bee8abbd
commit 2d8214e64f
+10 -1
View File
@@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.IO; using System.IO;
using System.IO.Compression; using System.IO.Compression;
using System.Threading; using System.Threading;
@@ -96,7 +97,15 @@ namespace JiraTimeBotForm.UI
PrintStartMessage(); PrintStartMessage();
tmrStart.Enabled = true; tmrStart.Enabled = true;
tmrUpdate.Enabled = true;
if (System.Diagnostics.Debugger.IsAttached)
{
_log.Trace("Приложение запущено в режиме отладки. Отключаю обновление.");
}
else
{
tmrUpdate.Enabled = true;
}
} }
private void PrintStartMessage() private void PrintStartMessage()