Possible fix for #2: OSD does not always disappear automatically ?

This commit is contained in:
Mark van Renswoude 2021-06-09 08:38:01 +02:00
parent c9fb7549ab
commit 96a71d6dcd
2 changed files with 15 additions and 1 deletions

View File

@ -44,4 +44,14 @@ The Windows software is written in C# using .NET Framework 4.7.2 and Visual Stud
Refer to the bundled plugins for examples.
Some icons courtesy of https://feathericons.com/
Some icons courtesy of https://feathericons.com/
## Releases
Builds are automatically run using AppVeyor. Tagged master releases are available on the [GitHub releases page](https://github.com/MvRens/MassiveKnob/releases). You can find an installer for each version under the "Assets" section for a release.
Master build (release versions)
[![Build status](https://ci.appveyor.com/api/projects/status/ycn9ydiitn25em99/branch/master?svg=true)](https://ci.appveyor.com/project/MvRens/massiveknob/branch/master)
Latest build
[![Build status](https://ci.appveyor.com/api/projects/status/ycn9ydiitn25em99?svg=true)](https://ci.appveyor.com/project/MvRens/massiveknob)

View File

@ -39,6 +39,10 @@ namespace MassiveKnob.Plugin.CoreAudio.OSD
private static void WindowOnClosed(object sender, EventArgs e)
{
// ReSharper disable once PossibleUnintendedReferenceComparison - it's intended.
if (sender != window)
return;
hideTimer?.Dispose();
hideTimer = null;