Skip to content

Commit 6dd38ca

Browse files
committed
Fixed bug that I introduced when changing the double click tray icon to single click. Also removed the annoying balloon help notifications. They inspired more rage than help.
1 parent fa81069 commit 6dd38ca

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

SPDIFKA/SPDIFGUI.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ private void Form1_Resize(object sender, EventArgs e)
6161
if (this.WindowState == FormWindowState.Minimized)
6262
{
6363
notifyIcon.Visible = true;
64-
notifyIcon.ShowBalloonTip(2500);
6564
this.ShowInTaskbar = false;
6665
this.Hide();
6766
}
@@ -74,10 +73,13 @@ private void Form1_Resize(object sender, EventArgs e)
7473
/// <param name="e"></param>
7574
private void notifyIcon_MouseClick(object sender, MouseEventArgs e)
7675
{
77-
this.WindowState = FormWindowState.Normal;
78-
this.ShowInTaskbar = true;
79-
notifyIcon.Visible = false;
80-
this.Show();
76+
if (e.Button.Equals(MouseButtons.Left))
77+
{
78+
this.WindowState = FormWindowState.Normal;
79+
this.ShowInTaskbar = true;
80+
notifyIcon.Visible = false;
81+
this.Show();
82+
}
8183
}
8284

8385
/// <summary>
@@ -108,7 +110,7 @@ private void toolStripExit_Click(object sender, EventArgs e)
108110
/// <param name="e"></param>
109111
private void toolStripAbout_Click(object sender, EventArgs e)
110112
{
111-
MessageBox.Show("Copyright 2014 handruin.com - Version " + version, "About", MessageBoxButtons.OK, MessageBoxIcon.Information);
113+
MessageBox.Show("Copyright 2015 handruin.com - Version " + version, "About", MessageBoxButtons.OK, MessageBoxIcon.Information);
112114
}
113115

114116
/// <summary>

SPDIFKA/SPDIFKA.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
</PropertyGroup>
7474
<ItemGroup>
7575
<Reference Include="Microsoft.VisualBasic" />
76-
<Reference Include="Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
7776
<Reference Include="System" />
7877
<Reference Include="System.Core" />
7978
<Reference Include="System.Xml.Linq" />

0 commit comments

Comments
 (0)