Skip to content

Commit 7a610d7

Browse files
authored
feat([email protected]): Add Menu editor entry to applet context menu (#11561)
* feat([email protected]): Add Menu editor entry to applet context menu * chore([email protected]): Change 'Menu editor' to 'Edit menu' and make it translatable
1 parent 92db061 commit 7a610d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,10 @@ class CinnamonMenuApplet extends Applet.TextIconApplet {
11741174
this.menu = new Menu(this, orientation);
11751175
this.menuManager.addMenu(this.menu);
11761176

1177+
const edit_item = new PopupMenu.PopupIconMenuItem(_("Edit menu"), "document-edit", St.IconType.SYMBOLIC);
1178+
edit_item.connect("activate", () => Util.spawnCommandLine("cinnamon-menu-editor"));
1179+
this._applet_context_menu.addMenuItem(edit_item);
1180+
11771181
this.settings = new Settings.AppletSettings(this, "[email protected]", instance_id);
11781182
this.settings.connect("settings-changed", () => {
11791183
this._size_dirty = true;

0 commit comments

Comments
 (0)