Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
Fixed status icon issue #1.
Browse files Browse the repository at this point in the history
After the status FLASH_IMPORTANT we always went to ONLINE, but it is wrong!
  • Loading branch information
buglloc committed Mar 10, 2015
1 parent 5aa8ccf commit 1c579d6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions brick/status_icon/status_icon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ StatusIcon::GetIcon() {

void
StatusIcon::SetBadge(int badge, bool is_important) {
if (
(is_important || GetIcon() != StatusIcon::Icon::FLASH_IMPORTANT)
&& badge > 0
) {
// Regular flash (e.g. notification) can't replace important flash status (e.g. messages)
if (badge > 0) {
if (is_important) {
SetIcon(StatusIcon::Icon::FLASH_IMPORTANT);
} else {
Expand Down

0 comments on commit 1c579d6

Please sign in to comment.