Skip to content

Commit

Permalink
fix crash when icon file not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
geovens committed May 14, 2017
1 parent 09908b1 commit 6efb605
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Binary file modified bin/Color Assistant.exe
Binary file not shown.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

v0.1.1 (May. 14, 2017)
=================
- Fix crash when icon file not found.

v0.1 (May. 13, 2017)
=================
- First beta release.
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.0.0")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: AssemblyVersion("0.1.1.0")]
[assembly: AssemblyFileVersion("0.1.1.0")]
5 changes: 4 additions & 1 deletion src/Root.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ public Root()
Size size = SystemInformation.SmallIconSize;
trayIcon = new NotifyIcon();
trayIcon.Text = "Color Assistant";
trayIcon.Icon = new Icon("icon.ico");
if (File.Exists("icon.ico"))
trayIcon.Icon = new Icon("icon.ico");
else
trayIcon.Icon = global::gInk.Properties.Resources.icon;
trayIcon.ContextMenu = trayMenu;
trayIcon.Visible = true;
trayIcon.MouseClick += TrayIcon_Click;
Expand Down

0 comments on commit 6efb605

Please sign in to comment.