mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Bundle slash lighting sleep animation with brightness setting https://github.com/seerge/g-helper/issues/2381
This commit is contained in:
@@ -88,6 +88,7 @@ namespace GHelper.AnimeMatrix
|
||||
{
|
||||
deviceSlash.Init();
|
||||
deviceSlash.SetOptions(false, 0, 0);
|
||||
deviceSlash.SetSleepActive(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -98,7 +99,7 @@ namespace GHelper.AnimeMatrix
|
||||
}
|
||||
|
||||
deviceSlash.Init();
|
||||
|
||||
|
||||
switch ((SlashMode)running)
|
||||
{
|
||||
case SlashMode.Static:
|
||||
@@ -110,6 +111,8 @@ namespace GHelper.AnimeMatrix
|
||||
deviceSlash.Save();
|
||||
break;
|
||||
}
|
||||
|
||||
deviceSlash.SetSleepActive(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -121,7 +124,6 @@ namespace GHelper.AnimeMatrix
|
||||
if (deviceSlash is not null)
|
||||
{
|
||||
deviceSlash.SetLidMode(matrixLid);
|
||||
deviceSlash.SetSleepActive(!matrixLid);
|
||||
}
|
||||
|
||||
if (matrixLid || force)
|
||||
|
||||
Reference in New Issue
Block a user