mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(ALabel): getIcon
This commit is contained in:
parent
de0ee9fcb2
commit
7404f80122
@ -90,7 +90,7 @@ std::string waybar::ALabel::getIcon(uint16_t percentage,
|
|||||||
const std::string& alt) {
|
const std::string& alt) {
|
||||||
auto format_icons = config_["format-icons"];
|
auto format_icons = config_["format-icons"];
|
||||||
if (format_icons.isObject()) {
|
if (format_icons.isObject()) {
|
||||||
if (!alt.empty() && format_icons[alt].isString()) {
|
if (!alt.empty() && format_icons[alt].isArray()) {
|
||||||
format_icons = format_icons[alt];
|
format_icons = format_icons[alt];
|
||||||
} else {
|
} else {
|
||||||
format_icons = format_icons["default"];
|
format_icons = format_icons["default"];
|
||||||
|
Loading…
Reference in New Issue
Block a user