mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
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:
parent
d5c60e37c8
commit
7060c2d7f5
1 changed files with 11 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue