From e1addca3e934849aae0715a231260db61f9de4c7 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 318c68e..83f285a 100644 --- a/examples/hexagon_launcher.rs +++ b/examples/hexagon_launcher.rs @@ -95,7 +95,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;