Changed the picker behavior to show again if the export failed or was "canceled"

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1913 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-06-08 13:52:55 +00:00
commit 6f3c928792
2 changed files with 28 additions and 12 deletions

View file

@ -110,10 +110,15 @@ namespace Greenshot.Destinations {
LOG.Error(e);
}
} else {
using (Bitmap image = (Bitmap)surface.GetImageForExport()) {
editor.Surface.AddBitmapContainer(image, 10, 10);
}
surface.SendMessageEvent(this, SurfaceMessageTyp.Info, Language.GetFormattedString(LangKey.exported_to, Description));
try {
using (Bitmap image = (Bitmap)surface.GetImageForExport()) {
editor.Surface.AddBitmapContainer(image, 10, 10);
}
surface.SendMessageEvent(this, SurfaceMessageTyp.Info, Language.GetFormattedString(LangKey.exported_to, Description));
return true;
} catch (Exception e) {
LOG.Error(e);
}
}
return false;
}