From 1922b30adab01c711da5b5ce3a85ff81ac3275f9 Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Fri, 15 May 2026 18:41:45 +0200 Subject: [PATCH] [fix?:] will this work? --- MainWindow.axaml.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs index 974538c..2a777e5 100644 --- a/MainWindow.axaml.cs +++ b/MainWindow.axaml.cs @@ -785,14 +785,14 @@ public partial class MainWindow : Window // hier nach winpafd prüfen var filePath = await saveDialog.ShowAsync(this); - if (!string.IsNullOrEmpty(filePath)) + if (!string.IsNullOrWhiteSpace(filePath)) { - if (Uri.TryCreate(filePath, UriKind.Absolute, out var uri) - && uri.IsFile) + if (filePath.StartsWith("file://")) { - filePath = uri.LocalPath; + filePath = new Uri(filePath).LocalPath; } - + Console.WriteLine(filePath); + var builder = new PdfBuilder(Settings._instance.pdfExport); builder.CreateAddressLabelPdfFromAddressSetWithPlaceholder(