mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
Fix "open with" list ordering (#2697)
* Add sorting to "open with" menu * Added sorting of open with in rust * made prettier * reduced variables used * format issues * revert rust back to no sorting
This commit is contained in:
parent
c4c8fbaec5
commit
9c9fde2245
@ -100,7 +100,9 @@ const Items = ({
|
||||
paths.length > 0
|
||||
? actions.getEphemeralFilesOpenWithApps(paths).then(handleError)
|
||||
: Promise.resolve([])
|
||||
]).then((res) => res.flat());
|
||||
])
|
||||
.then((res) => res.flat())
|
||||
.then((res) => res.sort((a, b) => a.name.localeCompare(b.name)));
|
||||
},
|
||||
{ initialData: [] }
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user