Skip to content

Commit

Permalink
Version bump v1.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
tensei committed Nov 13, 2021
1 parent d64defd commit 34279db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions anidow/Bootstrapper.cs
@@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.Globalization;
using System.Net;
using System.Net.Http;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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()
Expand All @@ -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);

Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion anidow/anidow.csproj
Expand Up @@ -13,7 +13,7 @@
<ApplicationIcon>anidown_28v_icon.ico</ApplicationIcon>
<LangVersion>10</LangVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<Version>1.5.5</Version>
<Version>1.5.6</Version>
<Authors>Tensei C.</Authors>
<Company>MemeLabs</Company>
<PackageProjectUrl>https://github.com/MemeLabs/Anidow</PackageProjectUrl>
Expand Down

0 comments on commit 34279db

Please sign in to comment.