mirror of
https://github.com/Royce551/FRESHMusicPlayer.git
synced 2025-01-22 10:51:52 -05:00
Fix freedesktop portal integration
This commit is contained in:
parent
340e76fd82
commit
a27817df98
1 changed files with 2 additions and 6 deletions
|
@ -32,14 +32,10 @@ namespace FRESHMusicPlayer.Controls
|
|||
};
|
||||
|
||||
// pain
|
||||
List<(string, (int, string)[])> nativeFilters = new();
|
||||
List<(string, (uint, string)[])> nativeFilters = new();
|
||||
foreach (var filter in Filters)
|
||||
{
|
||||
var nativeExtensions = new List<(int, string)>();
|
||||
foreach (var extension in filter.Extensions)
|
||||
{
|
||||
nativeExtensions.Add(new(0, $"*.{extension}"));
|
||||
}
|
||||
var nativeExtensions = filter.Extensions.Select(extension => new ValueTuple<uint, string>(0, $"*.{extension}")).ToList();
|
||||
if (IncludeOtherOption) nativeExtensions.Add(new(0, "*"));
|
||||
nativeFilters.Add((filter.Name, nativeExtensions.ToArray()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue