Skip to content

Commit

Permalink
Double WMI and hotkey fix for ancient models #2081
Browse files Browse the repository at this point in the history
  • Loading branch information
seerge committed Feb 18, 2024
1 parent a6a4537 commit c82bc87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,17 @@ public static bool IsStrixLimitedRGB()
return (ContainsModel("G614JV") || ContainsModel("G614JZ") || ContainsModel("G512LI") || ContainsModel("G513R") || ContainsModel("G713PV") || ContainsModel("G513IE") || ContainsModel("G713RC") || ContainsModel("G513QM") || ContainsModel("G531G")) && !Is("per_key_rgb");
}


public static bool IsNoAirplaneMode()
{
return ContainsModel("FX506");
}

public static bool NoWMI()
{
return ContainsModel("GL704G");
}

public static bool IsNoDirectRGB()
{
return ContainsModel("GA503") || ContainsModel("G533Q");
Expand Down
1 change: 1 addition & 0 deletions app/Input/InputDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,7 @@ static void WatcherEventArrived(object sender, EventArrivedEventArgs e)
if (e.NewEvent is null) return;
int EventID = int.Parse(e.NewEvent["EventID"].ToString());
Logger.WriteLine("WMI event " + EventID);
if (AppConfig.NoWMI()) return;
HandleEvent(EventID);
}
}
Expand Down

0 comments on commit c82bc87

Please sign in to comment.