Skip to content

Avoid crash when icon is missing from theme#782

Open
sevenroute wants to merge 1 commit intoprojecthamster:masterfrom
sevenroute:fix-missing-icon-crash
Open

Avoid crash when icon is missing from theme#782
sevenroute wants to merge 1 commit intoprojecthamster:masterfrom
sevenroute:fix-missing-icon-crash

Conversation

@sevenroute
Copy link

On recent icon themes, view-refresh-symbolic is not resolvable for the active theme, which makes IconTheme.load_icon raise a GError in Icon.setattr and prevents Hamster from starting.
This patch catches errors from load_icon and sets image_data = None instead, so a missing or broken icon no longer crashes the application.

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