Excessive notifications

Bug #418328 reported by Scott Kitterman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KDE Airplane Mode
Fix Released
Undecided
Rich Johnson

Bug Description

When I turn airplane mode on/off I get a notification (each) for wifi, bluetooth, and airplane mode being on/off. Three notifications is too many. In this case, I think, only the airplane mode notification should happen and it should list the devices it turned off.

Related branches

Revision history for this message
Rich Johnson (nixternal) wrote :

Ya, I need to clean this up.

Changed in kairmode:
status: New → Confirmed
assignee: nobody → Richard Johnson (nixternal)
Revision history for this message
Rich Johnson (nixternal) wrote :

=== modified file 'kairmode.py'
--- kairmode.py 2009-08-25 03:41:32 +0000
+++ kairmode.py 2009-08-25 03:56:07 +0000
@@ -225,7 +225,8 @@
         (stdout, stderr) = toggle.communicate()
         if not stderr:
             self.wifi_power = self.getWiFiDevicePowerStatus()
- self.notifyUser(notify_event, i18n("WiFi device (%s) powered %s" % (self.wifi_device, next_state)))
+ if not self.isAirplaneMode():
+ self.notifyUser(notify_event, i18n("WiFi device (%s) powered %s" % (self.wifi_device, next_state)))
         else:
             self.notifyUser(notify_event, i18n("ERROR: Unable to turn WiFi device (%s) %s" % (self.wifi_device, next_state)))
         self.airplane_mode = self.isAirplaneMode()
@@ -249,7 +250,8 @@
         (stdout, stderr) = toggle.communicate()
         if not stderr:
             self.bluetooth_power = self.getBluetoothDevicePowerStatus()
- self.notifyUser(notify_event, i18n("Bluetooth device (%s) powered %s" % (self.bluetooth_device, next_state_name)))
+ if not self.isAirplaneMode()
+ self.notifyUser(notify_event, i18n("Bluetooth device (%s) powered %s" % (self.bluetooth_device, next_state_name)))
         else:
             self.notifyUser(notify_event, i18n("ERROR: Unable to turn Bluetooth device (%s) %s" % (self.bluetooth_device, next_state_name)))
         self.airplane_mode = self.isAirplaneMode()

Changed in kairmode:
status: Confirmed → Fix Committed
Rich Johnson (nixternal)
Changed in kairmode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.