From 71503b34b5733d09e0984579fa600a04cad2e4c6 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Sat, 18 Feb 2023 14:08:00 -0700 Subject: [PATCH] Fix macOS crash --- .../LibationAvalonia/Dialogs/AccountsDialog.axaml.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Source/LibationAvalonia/Dialogs/AccountsDialog.axaml.cs b/Source/LibationAvalonia/Dialogs/AccountsDialog.axaml.cs index 1b25c082..da450e0d 100644 --- a/Source/LibationAvalonia/Dialogs/AccountsDialog.axaml.cs +++ b/Source/LibationAvalonia/Dialogs/AccountsDialog.axaml.cs @@ -117,14 +117,13 @@ namespace LibationAvalonia.Dialogs { Title = $"Select the audible-cli [account].json file", AllowMultiple = false, - SuggestedStartLocation = new BclStorageFolder(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)), FileTypeFilter = new FilePickerFileType[] { - new("JSON files (*.json)") - { - Patterns = new[] { "*.json" }, - AppleUniformTypeIdentifiers = new[] { "public.json" } - } + new("JSON files (*.json)") + { + Patterns = new[] { "*.json" }, + AppleUniformTypeIdentifiers = new[] { "public.json" } + } } }; @@ -278,7 +277,6 @@ namespace LibationAvalonia.Dialogs var options = new FilePickerSaveOptions { Title = $"Save Sover Image", - SuggestedStartLocation = new BclStorageFolder(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)), SuggestedFileName = $"{acc.AccountId}.json", DefaultExtension = "json", ShowOverwritePrompt = true,