mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Slash lightning tweak https://github.com/seerge/g-helper/issues/2447
This commit is contained in:
@@ -59,18 +59,6 @@ namespace GHelper.AnimeMatrix
|
||||
if (deviceSlash is not null) SetSlash(wakeUp);
|
||||
}
|
||||
|
||||
public void SetLidMode(bool force = false)
|
||||
{
|
||||
bool matrixLid = AppConfig.Is("matrix_lid");
|
||||
if (matrixLid || force)
|
||||
{
|
||||
Logger.WriteLine($"Matrix LidClosed: {lidClose}");
|
||||
if (deviceSlash is not null) deviceSlash.SetLidMode(matrixLid);
|
||||
SetDevice(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void SetSlash(bool wakeUp = false)
|
||||
{
|
||||
if (deviceSlash is null) return;
|
||||
@@ -117,9 +105,27 @@ namespace GHelper.AnimeMatrix
|
||||
});
|
||||
}
|
||||
|
||||
public void SetLidMode(bool force = false)
|
||||
{
|
||||
bool matrixLid = AppConfig.Is("matrix_lid");
|
||||
if (deviceSlash is not null) deviceSlash.SetLidMode(matrixLid);
|
||||
|
||||
if (matrixLid || force)
|
||||
{
|
||||
Logger.WriteLine($"Matrix LidClosed: {lidClose}");
|
||||
SetDevice(true);
|
||||
}
|
||||
}
|
||||
|
||||
public void SetBatteryAuto()
|
||||
{
|
||||
if (deviceSlash is not null) deviceSlash.SetBatterySaver(AppConfig.Is("matrix_auto"));
|
||||
if (deviceSlash is not null)
|
||||
{
|
||||
bool auto = AppConfig.Is("matrix_auto");
|
||||
deviceSlash.SetBatterySaver(auto);
|
||||
if (!auto) SetSlash();
|
||||
}
|
||||
|
||||
if (deviceMatrix is not null) SetMatrix();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user