Skip to content

Fix right-click context menu not appearing on image nodes in Pack Explorer#32

Merged
IntelOrca merged 2 commits into
masterfrom
copilot/restore-image-deletion-dropdown
Mar 16, 2026
Merged

Fix right-click context menu not appearing on image nodes in Pack Explorer#32
IntelOrca merged 2 commits into
masterfrom
copilot/restore-image-deletion-dropdown

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 16, 2026

Right-clicking an image node in the Pack Explorer showed no context menu (no Delete, Rename, Export options) because the type check used System.Drawing.Image instead of PakImage.

Change

mTreeView_NodeMouseClick had a wrong type in the condition that routes to SetupImageMenu():

// Before — never matches; image nodes are tagged with PakImage, not System.Drawing.Image
else if (e.Node.Tag is Image)

// After
else if (e.Node.Tag is PakImage)

GetImageNode sets inode.Tag = image where image is a PakImage. The rest of the file (KeyDown, NodeMouseDoubleClick) already used PakImage correctly; this one branch was the outlier causing the regression.

Original prompt

This section details on the original issue you should resolve

<issue_title>Deleting images in dropdown menu no longer possible</issue_title>
<issue_description>From direct e-mail sent to me:

I wanted to report a bug in Peggle Edit 5.1.1. In the Images folder, the dropdown menu that allowed deleting mistakenly uploaded images is no longer available.
This feature was present and working correctly in version 5.1.0.
It would be very helpful if this functionality could be restored, as it is essential for managing images in the project.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…heck

Co-authored-by: IntelOrca <1482259+IntelOrca@users.noreply.github.com>
Copilot AI changed the title [WIP] [ISSUE] Restore image deletion in dropdown menu Fix right-click context menu not appearing on image nodes in Pack Explorer Mar 16, 2026
Copilot AI requested a review from IntelOrca March 16, 2026 11:18
@IntelOrca IntelOrca marked this pull request as ready for review March 16, 2026 18:37
@IntelOrca IntelOrca merged commit 88bce11 into master Mar 16, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deleting images in dropdown menu no longer possible

2 participants