From 9c50cab5ded7766671cf8679944a0cbe2afa5329 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Mon, 2 Oct 2017 13:12:34 +0300 Subject: [PATCH] new project context menu item for workspace - close #338 --- src/dlangide/ui/wspanel.d | 5 +++-- views/VERSION | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dlangide/ui/wspanel.d b/src/dlangide/ui/wspanel.d index 7741e07..56100e8 100644 --- a/src/dlangide/ui/wspanel.d +++ b/src/dlangide/ui/wspanel.d @@ -45,7 +45,7 @@ class WorkspacePanel : DockWindow { TreeItem item = _tree.findItemById(projectItem.filename); if (item) { if (item.parent && !item.parent.isFullyExpanded) - item.parent.toggleExpand(); + _tree.items.toggleExpand(item.parent); _tree.makeItemVisible(item); _tree.selectItem(item); return true; @@ -92,7 +92,8 @@ class WorkspacePanel : DockWindow { _tree.popupMenu = &onTreeItemPopupMenu; _workspacePopupMenu = new MenuItem(); - _workspacePopupMenu.add(ACTION_PROJECT_FOLDER_REFRESH, + _workspacePopupMenu.add(ACTION_FILE_NEW_PROJECT, + ACTION_PROJECT_FOLDER_REFRESH, ACTION_FILE_WORKSPACE_CLOSE, ACTION_PROJECT_FOLDER_EXPAND_ALL, ACTION_PROJECT_FOLDER_COLLAPSE_ALL diff --git a/views/VERSION b/views/VERSION index c58a021..75dd3c5 100644 --- a/views/VERSION +++ b/views/VERSION @@ -1 +1 @@ -v0.8.4 \ No newline at end of file +v0.8.5 \ No newline at end of file