Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Let the file picker use the system's title; note the double-click in the header

KnifeLemona46aa84709aa
diff --git a/src/Filee.App/Views/Pages/HomePage.axaml.cs b/src/Filee.App/Views/Pages/HomePage.axaml.cs
index cf401371..901ebdd3 100644
--- a/src/Filee.App/Views/Pages/HomePage.axaml.cs
+++ b/src/Filee.App/Views/Pages/HomePage.axaml.cs
@@ -1,13 +1,11 @@
// Drop zone: files dropped on the Home page open the donut (click mode) at the drop position, also pictures, links and
-// downloads dragged from a browser.
+// downloads dragged from a browser. A double-click opens the file picker, and the donut opens for the picked files.
using Avalonia;
using Avalonia.Controls;
using Avalonia.Input;
-using Avalonia.Interactivity;
using Avalonia.Platform.Storage;
using Filee.App.Services;
-using Filee.Core.Localization;
using Microsoft.Extensions.Logging;
namespace Filee.App.Views.Pages;
@@ -44,12 +42,7 @@ public partial class HomePage : UserControl
if (TopLevel.GetTopLevel(this) is not { } top)
return;
- var loc = AppHost.Get<ILocalizer>();
- var files = await top.StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions
- {
- AllowMultiple = true,
- Title = loc["home.drop_title"],
- });
+ var files = await top.StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions { AllowMultiple = true });
var paths = files
.Select(f => f.TryGetLocalPath())