We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ca09c8 commit 6a44aa9Copy full SHA for 6a44aa9
PasteIntoFile/frmMain.cs
@@ -54,7 +54,7 @@ public frmMain(string location = null, string filename = null)
54
55
//
56
57
- var filenameFormat = Settings.Default.filenameTemplate ?? DefaultFilenameFormat;
+ var filenameFormat = string.IsNullOrWhiteSpace(Settings.Default.filenameTemplate) ? DefaultFilenameFormat : Settings.Default.filenameTemplate;
58
txtFilename.Text = DateTime.Now.ToString(filenameFormat);
59
txtCurrentLocation.Text = Path.GetFullPath(location);
60
chkClrClipboard.Checked = Settings.Default.clrClipboard;
@@ -161,6 +161,9 @@ string save()
161
}
162
163
164
+ // create folders if required
165
+ Directory.CreateDirectory(txtCurrentLocation.Text);
166
+
167
try
168
{
169
if (text != null)
0 commit comments