[studio] Restore context menu for root dir, but exclude Delete
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (push) Successful in 3m33s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (push) Successful in 3m33s
				
			This commit is contained in:
		| @@ -47,14 +47,14 @@ void ProjectExplorer::fileContextMenu(ox::StringViewCR path) const noexcept { | |||||||
| } | } | ||||||
|  |  | ||||||
| void ProjectExplorer::dirContextMenu(ox::StringViewCR path) const noexcept { | void ProjectExplorer::dirContextMenu(ox::StringViewCR path) const noexcept { | ||||||
| 	if (path.len() && ImGui::BeginPopupContextItem("DirMenu", ImGuiPopupFlags_MouseButtonRight)) { | 	if (ImGui::BeginPopupContextItem("DirMenu", ImGuiPopupFlags_MouseButtonRight)) { | ||||||
| 		if (ImGui::MenuItem("Add Item")) { | 		if (ImGui::MenuItem("Add Item")) { | ||||||
| 			addItem.emit(path); | 			addItem.emit(path); | ||||||
| 		} | 		} | ||||||
| 		if (ImGui::MenuItem("Add Directory")) { | 		if (ImGui::MenuItem("Add Directory")) { | ||||||
| 			addDir.emit(path); | 			addDir.emit(path); | ||||||
| 		} | 		} | ||||||
| 		if (ImGui::MenuItem("Delete")) { | 		if (path.len() && ImGui::MenuItem("Delete")) { | ||||||
| 			deleteItem.emit(path); | 			deleteItem.emit(path); | ||||||
| 		} | 		} | ||||||
| 		ImGui::EndPopup(); | 		ImGui::EndPopup(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user