Skip to content

Commit a388f9c

Browse files
jeremypwdanirabbit
andauthored
Remove trash item from project menu (#1617)
Co-authored-by: Danielle Foré <[email protected]>
1 parent 0b8b8f4 commit a388f9c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/FolderManager/ProjectFolderItem.vala

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,6 @@ namespace Scratch.FolderManager {
275275
direct_actions_section.append_item (close_item);
276276
}
277277

278-
var delete_item = new GLib.MenuItem (
279-
_("Move to Trash"),
280-
GLib.Action.print_detailed_name (
281-
FileView.ACTION_PREFIX + FileView.ACTION_DELETE,
282-
new Variant.string (file.path)
283-
)
284-
);
285-
286-
var delete_actions_section = new GLib.Menu ();
287-
delete_actions_section.append_item (delete_item);
288-
289278
var search_item = new GLib.MenuItem (
290279
_("Find in Project…"),
291280
GLib.Action.print_detailed_name (
@@ -312,7 +301,6 @@ namespace Scratch.FolderManager {
312301
menu_model.append_section (null, folder_actions_section);
313302
menu_model.append_section (null, close_actions_section);
314303
menu_model.append_section (null, direct_actions_section);
315-
menu_model.append_section (null, delete_actions_section);
316304
menu_model.append_section (null, search_actions_section);
317305

318306
var menu = new Gtk.Menu.from_model (menu_model);

0 commit comments

Comments
 (0)