Fixed bug with not having the capture title in the title bar.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1967 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-07-27 14:41:08 +00:00
commit 7060c2d7f5

View file

@ -118,10 +118,6 @@ namespace Greenshot {
private void updateUI() {
if (surface != null && surface.CaptureDetails != null && surface.CaptureDetails.Title != null) {
this.Text = surface.CaptureDetails.Title + " - " + Language.GetString(LangKey.editor_title);
}
this.Icon = GreenshotPlugin.Core.GreenshotResources.getGreenshotIcon();
// Disable access to the settings, for feature #3521446
@ -165,7 +161,12 @@ namespace Greenshot {
this.MouseWheel += new MouseEventHandler( PanelMouseWheel);
ApplyLanguage();
}
// Fix title
if (surface != null && surface.CaptureDetails != null && surface.CaptureDetails.Title != null) {
this.Text = surface.CaptureDetails.Title + " - " + Language.GetString(LangKey.editor_title);
}
}
/// <summary>
/// Get all the destinations and display them in the file menu and the buttons
@ -312,6 +313,11 @@ namespace Greenshot {
this.Invoke((MethodInvoker) delegate {
// Even update language when needed
ApplyLanguage();
// Fix title
if (surface != null && surface.CaptureDetails != null && surface.CaptureDetails.Title != null) {
this.Text = surface.CaptureDetails.Title + " - " + Language.GetString(LangKey.editor_title);
}
});
}