Skip to content

Commit

Permalink
Merge pull request #1078 from d2phap/fix_saveas_bugs
Browse files Browse the repository at this point in the history
Fix issues #1075, #1055
d2phap authored May 21, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 247f066 + efc44b1 commit efa9594
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/ImageGlass/frmMain.cs
Original file line number Diff line number Diff line change
@@ -4313,7 +4313,11 @@ private void mnuMainSaveAs_Click(object sender, EventArgs e) {
FileName = Path.GetFileNameWithoutExtension(currentFile),
RestoreDirectory = true,
};
saveDialog.CustomPlaces.Add(Path.GetDirectoryName(currentFile));

// When saving image from clipboard, there is no path (issue #1075)
// In the window of time while IG is populating the image list, there is no path (issue #1055)
var path2 = string.IsNullOrEmpty(currentFile) ? currentFile : Path.GetDirectoryName(currentFile);
saveDialog.CustomPlaces.Add(path2);


// Use the last-selected file extension, if available.

0 comments on commit efa9594

Please sign in to comment.