From 7060c2d7f5ece8b1bf5a3f747de4123b25d9e5ec Mon Sep 17 00:00:00 2001 From: RKrom Date: Fri, 27 Jul 2012 14:41:08 +0000 Subject: [PATCH] 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 --- Greenshot/Forms/ImageEditorForm.cs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Greenshot/Forms/ImageEditorForm.cs b/Greenshot/Forms/ImageEditorForm.cs index 5ecf4c1d2..01644cb2a 100644 --- a/Greenshot/Forms/ImageEditorForm.cs +++ b/Greenshot/Forms/ImageEditorForm.cs @@ -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); + } + } /// /// 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); + } }); }