mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
Updates for the notification service, now an icon is shown and it now follows the configuration settings. [skip ci]
This commit is contained in:
parent
1ba0bf9b10
commit
7e96c99b3d
23 changed files with 90 additions and 43 deletions
|
@ -231,7 +231,7 @@ namespace Greenshot {
|
|||
// A dirty fix to make sure the message box is visible as a Greenshot window on the taskbar
|
||||
using Form dummyForm = new Form
|
||||
{
|
||||
Icon = GreenshotResources.getGreenshotIcon(),
|
||||
Icon = GreenshotResources.GetGreenshotIcon(),
|
||||
ShowInTaskbar = true,
|
||||
FormBorderStyle = FormBorderStyle.None,
|
||||
Location = new Point(int.MinValue, int.MinValue)
|
||||
|
@ -345,7 +345,7 @@ namespace Greenshot {
|
|||
// Make the main menu available
|
||||
SimpleServiceProvider.Current.AddService(contextMenu);
|
||||
|
||||
notifyIcon.Icon = GreenshotResources.getGreenshotIcon();
|
||||
notifyIcon.Icon = GreenshotResources.GetGreenshotIcon();
|
||||
// Make the notify icon available
|
||||
SimpleServiceProvider.Current.AddService(notifyIcon);
|
||||
|
||||
|
@ -371,6 +371,7 @@ namespace Greenshot {
|
|||
// Check to see if there is already another INotificationService
|
||||
if (SimpleServiceProvider.Current.GetInstance<INotificationService>() == null)
|
||||
{
|
||||
// If not we add the internal NotifyIcon notification service
|
||||
SimpleServiceProvider.Current.AddService<INotificationService>(new NotifyIconNotificationService());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue