mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix: lint files
This commit is contained in:
@ -314,9 +314,7 @@ void Item::updateImage() {
|
||||
}
|
||||
|
||||
Glib::RefPtr<Gdk::Pixbuf> Item::getIconPixbuf() {
|
||||
|
||||
if (!icon_name.empty()) {
|
||||
|
||||
try {
|
||||
std::ifstream temp(icon_name);
|
||||
if (temp.is_open()) {
|
||||
@ -347,7 +345,8 @@ Glib::RefPtr<Gdk::Pixbuf> Item::getIconPixbuf() {
|
||||
if (icon_name.empty()) {
|
||||
spdlog::error("Item '{}': No icon name or pixmap given.", id);
|
||||
} else {
|
||||
spdlog::error("Item '{}': Could not find an icon named '{}' and no pixmap given.", id, icon_name);
|
||||
spdlog::error("Item '{}': Could not find an icon named '{}' and no pixmap given.", id,
|
||||
icon_name);
|
||||
}
|
||||
|
||||
return getIconByName("image-missing", getScaledIconSize());
|
||||
|
Reference in New Issue
Block a user