Skip to content

Check if extension files are present to avoid crashes & issues#5593

Merged
dacap merged 1 commit into
aseprite:mainfrom
ckaiser:cant-find-my-keys
Feb 12, 2026
Merged

Check if extension files are present to avoid crashes & issues#5593
dacap merged 1 commit into
aseprite:mainfrom
ckaiser:cant-find-my-keys

Conversation

@ckaiser

@ckaiser ckaiser commented Dec 13, 2025

Copy link
Copy Markdown
Member

Having an installed extension that refers to a non-existing keys file can cause aseprite to crash on load, as AppMenu attempts to load the XML file without checking if it exists. Other non-existing files can also cause annoying issues (like language entries appearing but doing nothing, etc).

This adds some checks to avoid this. The only only necessary one is the KeyboardShortcuts one, but I think the others won't hurt and make sense.

Test exception to reproduce it: test-extension.zip

@ckaiser ckaiser requested a review from dacap as a code owner December 13, 2025 17:00
@aseprite-bot

Copy link
Copy Markdown
Collaborator

clang-tidy review says "All clean, LGTM! 👍"

@aseprite-bot

Copy link
Copy Markdown
Collaborator

clang-tidy review says "All clean, LGTM! 👍"

@dacap

dacap commented Feb 12, 2026

Copy link
Copy Markdown
Member

The fix works great! 👍 thanks for the example test extension file.

@dacap dacap merged commit 2db5aa9 into aseprite:main Feb 12, 2026
12 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.

3 participants