Commit 9c615dbf authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

System icons: filter out empty contexts

Fixes #22
Closes !11
parent f00d4c8d
Pipeline #195817 failed with stage
in 1 minute and 29 seconds
......@@ -138,7 +138,9 @@ impl IconsModel {
})
.collect();
icons.sort_by(|a, b| a.name.cmp(&b.name));
if icons.is_empty() {
continue;
}
let context = context_str.to_string();
self.system_icons.borrow_mut().insert(
context.clone(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment