mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Fixed NotifyIcon problem when canceling the SaveWithDialog destination.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1634 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
4a7db37090
commit
6ae97acd99
2 changed files with 4 additions and 3 deletions
|
@ -82,8 +82,6 @@ namespace Greenshot.Destinations {
|
|||
surface.LastSaveFullPath = savedTo;
|
||||
captureDetails.Filename = savedTo;
|
||||
surface.SendMessageEvent(this, SurfaceMessageTyp.FileSaved, lang.GetFormattedString(LangKey.editor_imagesaved,surface.LastSaveFullPath));
|
||||
} else {
|
||||
surface.SendMessageEvent(this, SurfaceMessageTyp.Info, "");
|
||||
}
|
||||
}
|
||||
return savedTo != null;
|
||||
|
|
|
@ -418,6 +418,9 @@ namespace Greenshot.Helpers {
|
|||
// Register notify events if this is wanted
|
||||
if (conf.ShowTrayNotification) {
|
||||
surface.SurfaceMessage += delegate(object source, SurfaceMessageEventArgs eventArgs) {
|
||||
if (string.IsNullOrEmpty(eventArgs.Message)) {
|
||||
return;
|
||||
}
|
||||
switch (eventArgs.MessageType) {
|
||||
case SurfaceMessageTyp.Error:
|
||||
MainForm.instance.notifyIcon.ShowBalloonTip(10000, "Greenshot", eventArgs.Message, ToolTipIcon.Error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue