mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Removed unsupported RGB flags for G614J https://github.com/seerge/g-helper/issues/1428
This commit is contained in:
@@ -9,6 +9,7 @@ public static class AppConfig
|
|||||||
private static string configFile;
|
private static string configFile;
|
||||||
|
|
||||||
private static string? _model;
|
private static string? _model;
|
||||||
|
private static string? _modelShort;
|
||||||
private static string? _bios;
|
private static string? _bios;
|
||||||
|
|
||||||
private static Dictionary<string, object> config = new Dictionary<string, object>();
|
private static Dictionary<string, object> config = new Dictionary<string, object>();
|
||||||
@@ -73,7 +74,7 @@ public static class AppConfig
|
|||||||
|
|
||||||
public static (string, string) GetBiosAndModel()
|
public static (string, string) GetBiosAndModel()
|
||||||
{
|
{
|
||||||
if (_bios is not null && _model is not null) return (_bios, _model);
|
if (_bios is not null && _modelShort is not null) return (_bios, _modelShort);
|
||||||
|
|
||||||
using (ManagementObjectSearcher objSearcher = new ManagementObjectSearcher(@"SELECT * FROM Win32_BIOS"))
|
using (ManagementObjectSearcher objSearcher = new ManagementObjectSearcher(@"SELECT * FROM Win32_BIOS"))
|
||||||
{
|
{
|
||||||
@@ -85,16 +86,16 @@ public static class AppConfig
|
|||||||
string[] results = obj["SMBIOSBIOSVersion"].ToString().Split(".");
|
string[] results = obj["SMBIOSBIOSVersion"].ToString().Split(".");
|
||||||
if (results.Length > 1)
|
if (results.Length > 1)
|
||||||
{
|
{
|
||||||
_model = results[0];
|
_modelShort = results[0];
|
||||||
_bios = results[1];
|
_bios = results[1];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_model = obj["SMBIOSBIOSVersion"].ToString();
|
_modelShort = obj["SMBIOSBIOSVersion"].ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (_bios, _model);
|
return (_bios, _modelShort);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -276,7 +276,9 @@ namespace GHelper
|
|||||||
checkSleepBar.Visible = false;
|
checkSleepBar.Visible = false;
|
||||||
checkShutdownBar.Visible = false;
|
checkShutdownBar.Visible = false;
|
||||||
|
|
||||||
if (!AppConfig.IsZ13())
|
}
|
||||||
|
|
||||||
|
if ((!AppConfig.IsStrix() && !AppConfig.IsZ13()) || AppConfig.IsStrixLimitedRGB())
|
||||||
{
|
{
|
||||||
labelBacklightLid.Visible = false;
|
labelBacklightLid.Visible = false;
|
||||||
checkAwakeLid.Visible = false;
|
checkAwakeLid.Visible = false;
|
||||||
@@ -292,7 +294,6 @@ namespace GHelper
|
|||||||
|
|
||||||
labelBacklightKeyboard.Visible = false;
|
labelBacklightKeyboard.Visible = false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//checkAutoToggleClamshellMode.Visible = clamshellControl.IsExternalDisplayConnected();
|
//checkAutoToggleClamshellMode.Visible = clamshellControl.IsExternalDisplayConnected();
|
||||||
checkAutoToggleClamshellMode.Checked = AppConfig.Is("toggle_clamshell_mode");
|
checkAutoToggleClamshellMode.Checked = AppConfig.Is("toggle_clamshell_mode");
|
||||||
|
|||||||
Reference in New Issue
Block a user