Skip to content

Commit accb8e1

Browse files
committed
Cleanup
1 parent e01df60 commit accb8e1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/Settings.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@
1212
using GHelper.Peripherals.Mouse;
1313
using GHelper.UI;
1414
using GHelper.USB;
15-
using System;
1615
using System.Diagnostics;
1716
using System.Timers;
18-
using static NativeMethods;
1917

2018
namespace GHelper
2119
{
@@ -435,7 +433,7 @@ protected override void WndProc(ref Message m)
435433
if (m.Msg == NativeMethods.WM_POWERBROADCAST && m.WParam == (IntPtr)NativeMethods.PBT_POWERSETTINGCHANGE)
436434
{
437435
var settings = (NativeMethods.POWERBROADCAST_SETTING)m.GetLParam(typeof(NativeMethods.POWERBROADCAST_SETTING));
438-
if (settings.PowerSetting == PowerSettingGuid.LIDSWITCH_STATE_CHANGE)
436+
if (settings.PowerSetting == NativeMethods.PowerSettingGuid.LIDSWITCH_STATE_CHANGE)
439437
{
440438
switch (settings.Data)
441439
{

0 commit comments

Comments
 (0)