Set suggested file name for save window
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
#nullable enable
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@@ -545,6 +547,7 @@ class CreatePDFReportViewModel : BaseViewModel, ICanCheckShutdown, ILogger
|
|||||||
SuggestedFileType = FilePickerFileTypes.Pdf,
|
SuggestedFileType = FilePickerFileTypes.Pdf,
|
||||||
DefaultExtension = "pdf",
|
DefaultExtension = "pdf",
|
||||||
ShowOverwritePrompt = true,
|
ShowOverwritePrompt = true,
|
||||||
|
SuggestedFileName = ReportTitle + ".pdf"
|
||||||
});
|
});
|
||||||
|
|
||||||
if (result.File is not null)
|
if (result.File is not null)
|
||||||
|
|||||||
Reference in New Issue
Block a user