diff --git a/espanso-ui/src/mac/AppDelegate.mm b/espanso-ui/src/mac/AppDelegate.mm
index 7f70715..16ea228 100644
--- a/espanso-ui/src/mac/AppDelegate.mm
+++ b/espanso-ui/src/mac/AppDelegate.mm
@@ -100,7 +100,7 @@ void addSeparatorMenu(NSMenu * parent)
void addSingleMenu(NSMenu * parent, id item)
{
id label = [item objectForKey:@"label"];
- id raw_id = [item objectForKey:@"raw_id"];
+ id raw_id = [item objectForKey:@"id"];
if (label == nil || raw_id == nil)
{
return;
diff --git a/espanso-ui/src/menu.rs b/espanso-ui/src/menu.rs
index cba6c65..a6da3f0 100644
--- a/espanso-ui/src/menu.rs
+++ b/espanso-ui/src/menu.rs
@@ -1,75 +1,34 @@
-use std::collections::{HashMap, HashSet};
+/*
+ * This file is part of espanso.
+ *
+ * Copyright (C) 2019-2021 Federico Terzi
+ *
+ * espanso is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * espanso is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with espanso. If not, see .
+ */
use anyhow::Result;
use serde::{Deserialize, Serialize};
-use thiserror::Error;
#[derive(Debug)]
pub struct Menu {
- items: Vec