Skip to content

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszCichecki committed Jan 1, 2025
1 parent 0b09752 commit 5256e8c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<NeutralLanguage>en</NeutralLanguage>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Autofac" Version="8.1.1" />
<PackageReference Include="Autofac" Version="8.2.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="NeoSmart.AsyncLock" Version="3.2.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
Expand Down
2 changes: 1 addition & 1 deletion LenovoLegionToolkit.Lib/Controllers/GPUController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public async Task<GPUStatus> RefreshNowAsync()

public Task StartAsync(int delay = 1_000, int interval = 5_000)
{
if (IsStarted)
if (IsStarted)
return Task.CompletedTask;

if (Log.Instance.IsTraceEnabled)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private static unsafe int GetCpuBaseClock()
private async Task<GPUInfo> GetGPUInfoAsync()
{
if (gpuController.IsSupported())
await gpuController.StartAsync();
await gpuController.StartAsync().ConfigureAwait(false);

if (await gpuController.GetLastKnownStateAsync().ConfigureAwait(false) is GPUState.PoweredOff or GPUState.Unknown)
return GPUInfo.Empty;
Expand Down
10 changes: 5 additions & 5 deletions LenovoLegionToolkit.Lib/LenovoLegionToolkit.Lib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Autofac" Version="8.1.1" />
<PackageReference Include="Autofac" Version="8.2.0" />
<PackageReference Include="Ben.Demystifier" Version="0.4.1" />
<PackageReference Include="CoordinateSharp" Version="2.24.2.1" />
<PackageReference Include="CoordinateSharp" Version="3.1.1.1" />
<PackageReference Include="ManagedNativeWifi" Version="2.6.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.Win32.SystemEvents" Version="8.0.0" />
<PackageReference Include="Microsoft.Win32.SystemEvents" Version="9.0.0" />
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.106">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NAudio.Wasapi" Version="2.2.1" />
<PackageReference Include="PubSub" Version="4.0.2" />
<PackageReference Include="System.Management" Version="8.0.0" />
<PackageReference Include="System.ServiceProcess.ServiceController" Version="8.0.0" />
<PackageReference Include="System.Management" Version="9.0.0" />
<PackageReference Include="System.ServiceProcess.ServiceController" Version="9.0.0" />
<PackageReference Include="NeoSmart.AsyncLock" Version="3.2.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NvAPIWrapper.Net" Version="0.8.1.101" />
Expand Down
4 changes: 2 additions & 2 deletions LenovoLegionToolkit.WPF/LenovoLegionToolkit.WPF.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
<DebugType>embedded</DebugType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Autofac" Version="8.1.1" />
<PackageReference Include="Autofac" Version="8.2.0" />
<PackageReference Include="Humanizer" Version="2.14.1" />
<PackageReference Include="Markdig" Version="0.38.0" />
<PackageReference Include="Markdig" Version="0.39.1" />
<PackageReference Include="Markdig.Wpf" Version="0.5.0.1" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="PixiEditor.ColorPicker" Version="3.4.1" />
Expand Down
2 changes: 0 additions & 2 deletions LenovoLegionToolkit.WPF/Pages/AutomationPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
using Wpf.Ui.Common;
using MenuItem = Wpf.Ui.Controls.MenuItem;

#pragma warning disable CA2211

namespace LenovoLegionToolkit.WPF.Pages;

public partial class AutomationPage
Expand Down
5 changes: 2 additions & 3 deletions LenovoLegionToolkit.WPF/Utils/ScreenHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
using Windows.Win32.UI.HiDpi;
using Point = System.Drawing.Point;


#pragma warning disable CA1416

namespace LenovoLegionToolkit.WPF.Utils;

public static class ScreenHelper
Expand All @@ -20,7 +17,9 @@ public static Rect GetPrimaryDesktopWorkingArea()
if (!PInvoke.GetMonitorInfo(screen, ref monitorInfo))
return SystemParameters.WorkArea;

#pragma warning disable CA1416
if (!PInvoke.GetDpiForMonitor(screen, MONITOR_DPI_TYPE.MDT_EFFECTIVE_DPI, out var dpiX, out var dpiY).Succeeded)
#pragma warning restore CA1416
return SystemParameters.WorkArea;

var workArea = monitorInfo.rcWork;
Expand Down

0 comments on commit 5256e8c

Please sign in to comment.