Skip to content

Commit

Permalink
Fix: Fixed an issue where settings weren't exported in the correct fo…
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5bfa authored Jul 1, 2024
1 parent 10275e9 commit 3ab4eac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Files.App/ViewModels/Settings/AdvancedViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ private async Task ExportSettingsAsync()
string[] extensions = ["ZipFileCapitalized".GetLocalizedResource(), "*.zip" ];
CommonDialogService.Open_FileSaveDialog(MainWindow.Instance.WindowHandle, false, extensions, Environment.SpecialFolder.Desktop, out var filePath);

if (!filePath.EndsWith(".zip", StringComparison.OrdinalIgnoreCase))
filePath += ".zip";

try
{
var handle = Win32PInvoke.CreateFileFromAppW(
Expand Down

0 comments on commit 3ab4eac

Please sign in to comment.