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

feat: graceful offline fallback for qiconify #251

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

tlambert03
Copy link
Member

QIconifyIcon requires internet connection for the first load (after which it is cached and reused). However, it still shouldn't fail when offline, so this PR has it fall back to a question mark with a warning, allowing the program to continue loading

@alisterburt
Copy link

🫡

Copy link

codecov bot commented Jun 15, 2024

Codecov Report

Attention: Patch coverage is 70.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 87.08%. Comparing base (17ad107) to head (b4b18b4).

Files Patch % Lines
src/superqt/iconify/__init__.py 70.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #251      +/-   ##
==========================================
- Coverage   87.14%   87.08%   -0.07%     
==========================================
  Files          46       46              
  Lines        3423     3429       +6     
==========================================
+ Hits         2983     2986       +3     
- Misses        440      443       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tlambert03 tlambert03 merged commit 5f68795 into pyapp-kit:main Jun 15, 2024
48 checks passed
@tlambert03 tlambert03 deleted the offline-icon branch June 15, 2024 11:54
@tlambert03 tlambert03 added the enhancement New feature or request label Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants