Added "credits left" for Imgur to the form, this might give us a better idea of why the upload sometimes takes so long.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2006 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-09-06 15:48:44 +00:00
commit 480b32f586
4 changed files with 27 additions and 2 deletions

View file

@ -31,7 +31,7 @@ namespace GreenshotImgurPlugin {
/// <summary>
/// Description of ImgurHistory.
/// </summary>
public partial class ImgurHistory : Form {
public partial class ImgurHistory : ImgurForm {
private static readonly log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(ImgurHistory));
private GreenshotColumnSorter columnSorter;
private static ImgurConfiguration config = IniConfig.GetIniSection<ImgurConfiguration>();
@ -48,6 +48,7 @@ namespace GreenshotImgurPlugin {
}
private ImgurHistory() {
this.ManualLanguageApply = true;
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
@ -63,6 +64,10 @@ namespace GreenshotImgurPlugin {
if (listview_imgur_uploads.Items.Count > 0) {
listview_imgur_uploads.Items[0].Selected = true;
}
ApplyLanguage();
if (config.Credits > 0) {
this.Text = this.Text + " (" + config.Credits + " credits)";
}
}
private void redraw() {