[haiku-commits] Change in haiku[master]: Removes duplicate powerstatus notifications

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 8 Dec 2020 19:26:14 +0000

From Pawan Wadhwani <pawanw17@xxxxxxxxx>:

Pawan Wadhwani has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/3479 ;)


Change subject: Removes duplicate powerstatus notifications
......................................................................

Removes duplicate powerstatus notifications

When booting or adding powerstatus to deskbar with low power (<15) then low 
power notification is seen twice, the patch fixes this by removing a redundant 
function call.
Fixes #12277
---
M src/apps/powerstatus/PowerStatusView.cpp
1 file changed, 1 insertion(+), 2 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/79/3479/1

diff --git a/src/apps/powerstatus/PowerStatusView.cpp 
b/src/apps/powerstatus/PowerStatusView.cpp
index de04028..ff36fcf 100644
--- a/src/apps/powerstatus/PowerStatusView.cpp
+++ b/src/apps/powerstatus/PowerStatusView.cpp
@@ -609,8 +609,7 @@
                BDragger* dragger = new BDragger(frame, this,
                        B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM);
                AddChild(dragger);
-       } else
-               Update();
+       }
 }



--
To view, visit https://review.haiku-os.org/c/haiku/+/3479
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: I07d4cedbd23f3e9e950bef0409fdb941c2c32a20
Gerrit-Change-Number: 3479
Gerrit-PatchSet: 1
Gerrit-Owner: Pawan Wadhwani <pawanw17@xxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts: