Compare commits

...

2 commits

Author SHA1 Message Date
Ell
01575ed42d 1.2.6 2022-08-05 20:45:00 +02:00
Ell
614facddaf fixed a rare exception when lighting systems dispose 2022-08-05 20:43:56 +02:00
3 changed files with 11 additions and 3 deletions

View file

@ -11,7 +11,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>Logo.png</PackageIcon>
<VersionPrefix>1.2.5</VersionPrefix>
<VersionPrefix>1.2.6</VersionPrefix>
<NoWarn>NU1701</NoWarn>
</PropertyGroup>

View file

@ -20,7 +20,11 @@ namespace Illumilib.System {
public override void Dispose() {
base.Dispose();
this.ClearBitmap();
try {
LogitechGsdk.LogiLedShutdown();
} catch {
// ignored
}
}
public override void SetAllLighting(float r, float g, float b) {

View file

@ -22,7 +22,11 @@ namespace Illumilib.System {
public override void Dispose() {
base.Dispose();
try {
this.chroma?.UninitializeAsync();
} catch {
// ignored
}
this.effectOutdated = true;
}