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

Remove base64 encoded CKAN icon from resources #2872

Merged
merged 1 commit into from
Sep 25, 2019

Conversation

DasSkelett
Copy link
Member

Motivation

In #2749 I found out that C# compilers don't de-duplicate resources and thus the base64 encoded CKAN icon used in the window decorations is contained multiple times in the final binary.
We reduced it to only one occurrence in the main Resources.resx file.
However, we also added a reference to the ckan.ico file, so the data node AppIcon appeared twice in Resources.resx. I think I forgot to remove it after some testing.

One of those two should be removed.

Change

For the sake of reducing the size and line count of Resources.resx and for consistency with other imported image files, I chose to delete the string representation of the icon.

The .ico file reference works exactly as good as the base64 encoded icon included directly in the resource file in my testing.

@DasSkelett DasSkelett added the GUI Issues affecting the interactive GUI label Sep 24, 2019
Copy link
Member

@HebaruSan HebaruSan left a comment

Choose a reason for hiding this comment

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

Confirmed, seems to work the same. Nice catch!

@HebaruSan HebaruSan merged commit 6631229 into KSP-CKAN:master Sep 25, 2019
@DasSkelett DasSkelett deleted the fix/single-icon branch September 26, 2019 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI Issues affecting the interactive GUI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants