Skip to content

Commit ce7ba4f

Browse files
committed
fix: hide notification when battery is at -1
1 parent 0836b06 commit ce7ba4f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ui.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ def generateIcon(self, battery, isCharge):
163163

164164
def updateBatteryInfo(self):
165165
battery, isCharge = self.getBatteryInfo()
166-
if isCharge == 0 and self.rebt.show_battery_notification(battery):
167-
print('show')
166+
if isCharge == 0 and battery > 0 and self.rebt.show_battery_notification(battery):
168167
self.showNotification("Low Battery", f"Current Battery Level: {battery}%")
169168

170169
self.curBattery = battery

0 commit comments

Comments
 (0)