linux: use managed system dialog instead of DBus file picker (it has an extra black background panel on Wayland).

This commit is contained in:
leo 2024-03-19 15:53:46 +08:00
parent 1c14f5ea88
commit 0b8740dc3a

View file

@ -3,6 +3,7 @@ using System.IO;
using System.Runtime.Versioning;
using Avalonia;
using Avalonia.Dialogs;
namespace SourceGit.Native
{
@ -14,6 +15,8 @@ namespace SourceGit.Native
#if USE_FONT_INTER
builder.WithInterFont();
#endif
// Free-desktop file picker has an extra black background panel.
builder.UseManagedSystemDialogs();
}
public string FindGitExecutable()