Skip to content

Commit

Permalink
Solved compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
hodavand committed May 9, 2017
1 parent 812fc2b commit e4d9c34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Carnac/CarnacTrayIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public CarnacTrayIcon()
void NotifyIconClick(object sender, MouseEventArgs mouseEventArgs)
{
if (mouseEventArgs.Button == MouseButtons.Left)
{
var preferencesWindow = Application.Current.Windows.Cast<Window>().FirstOrDefault(x => x.Name == "PreferencesViewWindow");
if (preferencesWindow != null)
{
Expand All @@ -50,6 +51,7 @@ void NotifyIconClick(object sender, MouseEventArgs mouseEventArgs)
{
OpenPreferences();
}
}
}

public void Dispose()
Expand Down

0 comments on commit e4d9c34

Please sign in to comment.