Creating a branch 1.1 where I will try to make the 1.1.7 build available, this means I need to merge some changes from 2.0 to here.

This commit is contained in:
RKrom 2013-12-04 17:46:02 +01:00
parent 2a8e2475d8
commit a03bc31aef
247 changed files with 6986 additions and 8233 deletions

View file

@ -123,8 +123,9 @@ namespace GreenshotFlickrPlugin
config.ShowConfigDialog();
}
public void Upload(ICaptureDetails captureDetails, ISurface surface, ExportInformation exportInformation) {
public bool Upload(ICaptureDetails captureDetails, ISurface surface, out String uploadUrl) {
SurfaceOutputSettings outputSettings = new SurfaceOutputSettings(config.UploadFormat, config.UploadJpegQuality, false);
uploadUrl = null;
try {
string flickrUrl = null;
new PleaseWaitForm().ShowAndWait(Attributes.Name, Language.GetString("flickr", LangKey.communication_wait),
@ -135,18 +136,19 @@ namespace GreenshotFlickrPlugin
);
if (flickrUrl == null) {
exportInformation.ExportMade = false;
return;
return false;
}
exportInformation.ExportMade = true;
exportInformation.Uri = flickrUrl;
uploadUrl = flickrUrl;
if (config.AfterUploadLinkToClipBoard) {
ClipboardHelper.SetClipboardData(flickrUrl);
}
return true;
} catch (Exception e) {
LOG.Error("Error uploading.", e);
MessageBox.Show(Language.GetString("flickr", LangKey.upload_failure) + " " + e.Message);
}
return false;
}
}
}