Отключено обновление в режиме отладки
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user