From 41e4ac1896b366b7907e8d799116791ecf5d5c1d Mon Sep 17 00:00:00 2001 From: nik012003 Date: Sun, 12 Mar 2023 02:26:16 +0100 Subject: [PATCH] Fixed crash while sorting desktop files --- examples/hexagon_launcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/hexagon_launcher.rs b/examples/hexagon_launcher.rs index 9b230c8..3a8336c 100644 --- a/examples/hexagon_launcher.rs +++ b/examples/hexagon_launcher.rs @@ -98,7 +98,7 @@ impl AppHexGrid { .filter(|d| !d.no_display) .collect(); - desktop_files.sort_by_key(|d| d.clone().name.unwrap()); + desktop_files.sort_by_key(|d| d.clone().name.unwrap_or_default()); let mut apps = Vec::new(); let mut radius = 1;