diff --git a/anidow/Bootstrapper.cs b/anidow/Bootstrapper.cs
index a7cca7c..c2537a2 100644
--- a/anidow/Bootstrapper.cs
+++ b/anidow/Bootstrapper.cs
@@ -1,4 +1,5 @@
using System;
+using System.Diagnostics;
using System.Globalization;
using System.Net;
using System.Net.Http;
@@ -30,7 +31,6 @@
using AdonisUI.Controls;
using System.IO;
using System.Windows.Threading;
-using System.Diagnostics;
using System.Linq;
using MessageBox = AdonisUI.Controls.MessageBox;
using MessageBoxButton = AdonisUI.Controls.MessageBoxButton;
@@ -142,10 +142,8 @@ private Tracker InitTracker()
private void InitLogger(ILogEventSink logViewModel)
{
- var logLevel = LogEventLevel.Information;
-#if DEBUG
- logLevel = LogEventLevel.Verbose;
-#endif
+ var logLevel = Debugger.IsAttached ? LogEventLevel.Debug : LogEventLevel.Information;
+
var logConfiguration = new LoggerConfiguration()
.MinimumLevel.Is(logLevel)
.Enrich.FromLogContext()
@@ -167,6 +165,7 @@ protected override void OnExit(ExitEventArgs e)
JobManager.Stop();
base.OnExit(e);
}
+
[DllImport("user32.dll")]
private static extern IntPtr SetForegroundWindow(IntPtr hWnd);
@@ -181,7 +180,7 @@ protected override void Configure()
if (processes.Length > 1)
{
var p = processes.FirstOrDefault();
- if (p is not null )
+ if (p is not null)
{
ShowWindow(p.MainWindowHandle, 5);
SetForegroundWindow(p.MainWindowHandle);
diff --git a/anidow/anidow.csproj b/anidow/anidow.csproj
index ff2d7c3..2a293e2 100644
--- a/anidow/anidow.csproj
+++ b/anidow/anidow.csproj
@@ -13,7 +13,7 @@
anidown_28v_icon.ico
10
win-x64
- 1.5.5
+ 1.5.6
Tensei C.
MemeLabs
https://github.com/MemeLabs/Anidow