Skip to content

Fix for missing small icon infinite recursion - #12

Merged
cgutman merged 3 commits into
LizardByte:masterfrom
cgutman:tray_fixes
Mar 14, 2024
Merged

cgutman merged 3 commits into
LizardByte:masterfrom
cgutman:tray_fixes

Conversation

@cgutman

@cgutman cgutman commented Mar 14, 2024

Copy link
Copy Markdown

Description

This PR fixes a few issues with the icon caching:

  • Not properly managing the lifetime of the path string in the cache entries
  • The cached small icon being NULL on some machines
  • Infinite recursion if icon load fails for any persistent reason

Screenshot

Issues Fixed or Closed

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

Branch Updates

LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.

  • I want maintainers to keep my branch updated

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.

1 participant