new project context menu item for workspace - close #338

This commit is contained in:
Vadim Lopatin 2017-10-02 13:12:34 +03:00
parent ba97194bb3
commit 9c50cab5de
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -1 +1 @@
v0.8.4
v0.8.5