Skip to content

Commit

Permalink
fix(Tray): icon size lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays committed Apr 15, 2019
1 parent d05b839 commit 3273ee8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/sni/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,11 @@ waybar::modules::SNI::Item::getIconByName(std::string name, int request_size) {
if (size == request_size || size == -1) {
tmp_size = request_size;
break;
} else if (size < request_size || (size > tmp_size && tmp_size > 0)) {
} else if (size < request_size) {
tmp_size = size;
} else if (size > tmp_size && tmp_size > 0) {
tmp_size = request_size;
break;
}
}
if (tmp_size == 0) {
Expand Down

0 comments on commit 3273ee8

Please sign in to comment.