Commit e83cc05
fix(main): continue to next icon candidate if nativeImage is empty
If a Linux icon path exists (fs.existsSync) but the file is unreadable
or corrupt, nativeImage.createFromPath() returns an empty NativeImage.
Returning undefined immediately skips all remaining fallback candidates.
Use continue so the loop advances to the next path instead.
Addresses: #615 (review)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 349dbb5 commit e83cc05
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
0 commit comments