Skip to content

Commit

Permalink
Do not reinitialize keyboard by default on timer
Browse files Browse the repository at this point in the history
Reinitialize/Initialize interrupts macros
  • Loading branch information
LordJZ committed May 26, 2016
1 parent cfd9c8e commit 37b9159
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MicStatus/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ static void InitializeIcon()

static void Timer_Tick(object sender, EventArgs e)
{
InitializeKeyboard();

SetMuted(Volume.Mute);
}

Expand Down Expand Up @@ -134,6 +132,9 @@ static void SetMuted(bool muted)

try
{
if (Led == null)
InitializeKeyboard(true);

if (Led != null)
{
Led.Color = muted ? Color.FromArgb(170, 0, 0) : Color.Blue;
Expand Down

0 comments on commit 37b9159

Please sign in to comment.