Save as eml, translation updates
This commit is contained in:
@@ -59,6 +59,17 @@ public sealed partial class ComposePage : ComposePageAbstract,
|
||||
public ComposePage()
|
||||
{
|
||||
InitializeComponent();
|
||||
ViewModel.SaveHTMLasPDFFunc = async path =>
|
||||
{
|
||||
var webView = GetWebView();
|
||||
|
||||
if (webView?.CoreWebView2 == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return await webView.CoreWebView2.PrintToPdfAsync(path, null);
|
||||
};
|
||||
ViewModel.CloseRequested += ViewModel_CloseRequested;
|
||||
}
|
||||
|
||||
@@ -495,6 +506,7 @@ public sealed partial class ComposePage : ComposePageAbstract,
|
||||
FocusManager.GotFocus -= GlobalFocusManagerGotFocus;
|
||||
ComposeAiActionsPanel.CancelPendingOperation();
|
||||
await ViewModel.UpdateMimeChangesAsync();
|
||||
ViewModel.SaveHTMLasPDFFunc = null;
|
||||
ViewModel.RenderHtmlBodyAsyncFunc = null;
|
||||
|
||||
DisposeDisposables();
|
||||
@@ -565,6 +577,16 @@ public sealed partial class ComposePage : ComposePageAbstract,
|
||||
}
|
||||
}
|
||||
|
||||
private async void ExportPdf_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
await ViewModel.ExportAsPdfAsync();
|
||||
}
|
||||
|
||||
private async void ExportEml_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
await ViewModel.ExportAsEmlAsync();
|
||||
}
|
||||
|
||||
protected override void RegisterRecipients()
|
||||
{
|
||||
base.RegisterRecipients();
|
||||
|
||||
Reference in New Issue
Block a user