mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 08:15:21 +01:00
[PR #154] [MERGED] fix: poor error handling for missing images #4733
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#4733
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/JakeStanger/ironbar/pull/154
Author: @JakeStanger
Created: 5/20/2023
Status: ✅ Merged
Merged: 5/20/2023
Merged by: @JakeStanger
Base:
master← Head:fix/image-errors📝 Commits (1)
87ca399fix: poor error handling for missing images📊 Changes
7 files changed (+52 additions, -62 deletions)
View changed files
📝
src/image/gtk.rs(+5 -10)📝
src/image/provider.rs(+28 -15)📝
src/modules/custom/image.rs(+2 -7)📝
src/modules/focused.rs(+3 -6)📝
src/modules/launcher/item.rs(+6 -9)📝
src/modules/music/mod.rs(+6 -10)📝
src/modules/upower.rs(+2 -5)📄 Description
Previously images that could not be located were handled by throwing a full report error, which incorrectly stated it was an invalid image type.
This changes the image handling to instead log a single-line warning directly in the image provider code, reducing the error handling required by each consumer.
Resolves #146.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.