Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate shared menu icons in global resources #1989

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

glopesdev
Copy link
Member

This PR moves shared form embedded resources into the global Resources.resx file to avoid having the designer create duplicate entries with identical embedded binary image data.

This stems from a long standing quirk of the designer where it will reserialize resources multiple times into different entries in the local embedded resources file instead of referencing, unless images come from the shared project resources. This is done silently and automatically on opening the designer, so it is very easy for the duplication to go unnoticed.

Fixes #1988

@glopesdev glopesdev added the fix Pull request that fixes an issue label Sep 3, 2024
@glopesdev glopesdev added this to the 2.9 milestone Sep 3, 2024
Copy link
Member

@PathogenDavid PathogenDavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! :shipit:

@@ -1317,7 +1316,6 @@ private void InitializeComponent()
//
// workflowFileWatcher
//
this.workflowFileWatcher.EnableRaisingEvents = false;
Copy link
Member

@PathogenDavid PathogenDavid Sep 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For posterity: This is the default value for EnableRaisingEvents, this is just the designer cleaning up an unnecessary assignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid duplicate entries in resource files
2 participants