mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 17:13:44 -07:00
Fixed that the title in the editor is not representing the saved filename.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2308 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
502fe44270
commit
291bfadbea
1 changed files with 4 additions and 8 deletions
|
@ -293,12 +293,8 @@ namespace Greenshot {
|
||||||
|
|
||||||
void FileMenuDropDownOpening(object sender, EventArgs eventArgs) {
|
void FileMenuDropDownOpening(object sender, EventArgs eventArgs) {
|
||||||
ClearItems(this.fileStripMenuItem.DropDownItems);
|
ClearItems(this.fileStripMenuItem.DropDownItems);
|
||||||
//this.fileStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
||||||
// this.saveToolStripMenuItem,
|
|
||||||
// this.saveAsToolStripMenuItem,
|
|
||||||
// this.copyImageToClipboardToolStripMenuItem,
|
|
||||||
// this.printToolStripMenuItem});
|
|
||||||
|
|
||||||
|
// Add the destinations
|
||||||
foreach(IDestination destination in DestinationHelper.GetAllDestinations()) {
|
foreach(IDestination destination in DestinationHelper.GetAllDestinations()) {
|
||||||
if (ignoreDestinations.Contains(destination.Designation)) {
|
if (ignoreDestinations.Contains(destination.Designation)) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -314,9 +310,8 @@ namespace Greenshot {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// add the elements after the destinations
|
// add the elements after the destinations
|
||||||
this.fileStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] {
|
this.fileStripMenuItem.DropDownItems.Add(this.toolStripSeparator9);
|
||||||
this.toolStripSeparator9,
|
this.fileStripMenuItem.DropDownItems.Add(this.closeToolStripMenuItem);
|
||||||
this.closeToolStripMenuItem});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SurfaceMessageReceived(object sender, SurfaceMessageEventArgs eventArgs) {
|
private void SurfaceMessageReceived(object sender, SurfaceMessageEventArgs eventArgs) {
|
||||||
|
@ -325,6 +320,7 @@ namespace Greenshot {
|
||||||
//if (eventArgs.MessageType == SurfaceMessageTyp.FileSaved || eventArgs.MessageType == SurfaceMessageTyp.UploadedUrl) {
|
//if (eventArgs.MessageType == SurfaceMessageTyp.FileSaved || eventArgs.MessageType == SurfaceMessageTyp.UploadedUrl) {
|
||||||
if (eventArgs.MessageType == SurfaceMessageTyp.FileSaved || eventArgs.MessageType == SurfaceMessageTyp.UploadedUri) {
|
if (eventArgs.MessageType == SurfaceMessageTyp.FileSaved || eventArgs.MessageType == SurfaceMessageTyp.UploadedUri) {
|
||||||
updateStatusLabel(dateTime + " - " + eventArgs.Message, fileSavedStatusContextMenu);
|
updateStatusLabel(dateTime + " - " + eventArgs.Message, fileSavedStatusContextMenu);
|
||||||
|
this.Text = eventArgs.Surface.LastSaveFullPath + " - " + Language.GetString(LangKey.editor_title);
|
||||||
} else {
|
} else {
|
||||||
updateStatusLabel(dateTime + " - " + eventArgs.Message);
|
updateStatusLabel(dateTime + " - " + eventArgs.Message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue