Skip to content

Commit

Permalink
Solve #9
Browse files Browse the repository at this point in the history
  • Loading branch information
lingrottin committed Oct 3, 2024
1 parent 12d6ee5 commit 2e32a51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MapTP.App/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
</ScrollViewer>
<tray:NotifyIcon
x:Name="TrayIcon"
TooltipText="MapTP (Not Mapping)"
TooltipText="MapTP (inactive)"
MenuOnRightClick="True"
FocusOnLeftClick="True"
LeftClick="TrayShowWindowClick"
Expand Down
2 changes: 2 additions & 0 deletions MapTP.App/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ private void StartButtonClick(object sender, RoutedEventArgs e)
TrayStartMenuItem.Click -= StartButtonClick;
TrayStartMenuItem.Click += StopButtonClick;
TrayIcon.Icon = new BitmapImage(new Uri("pack://application:,,,/logo.ico"));
TrayIcon.TooltipText = "MapTP (active)";
}

private void StopButtonClick(object sender, RoutedEventArgs e)
Expand All @@ -365,6 +366,7 @@ private void StopButtonClick(object sender, RoutedEventArgs e)
TrayStartMenuItem.Click -= StopButtonClick;
TrayStartMenuItem.Click += StartButtonClick;
TrayIcon.Icon = new BitmapImage(new Uri("pack://application:,,,/logo-inactive.ico"));
TrayIcon.TooltipText = "MapTP (inactive)";
}

/// <summary>
Expand Down

0 comments on commit 2e32a51

Please sign in to comment.