comment-out some debugging prints
This commit is contained in:
parent
e819265e7e
commit
4cdd796a3d
|
|
@ -83,14 +83,14 @@ def _run(args):
|
||||||
# if l is not None:
|
# if l is not None:
|
||||||
# l.stop()
|
# l.stop()
|
||||||
|
|
||||||
print ("****", action, device, listeners)
|
# print ("****", action, device, listeners)
|
||||||
|
|
||||||
# callback delivering status notifications from the receiver/devices to the UI
|
# callback delivering status notifications from the receiver/devices to the UI
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
from logitech.unifying_receiver.status import ALERT
|
from logitech.unifying_receiver.status import ALERT
|
||||||
def status_changed(device, alert=ALERT.NONE, reason=None):
|
def status_changed(device, alert=ALERT.NONE, reason=None):
|
||||||
assert device is not None
|
assert device is not None
|
||||||
print ("status changed", device, reason)
|
# print ("status changed", device, reason)
|
||||||
|
|
||||||
GLib.idle_add(ui.status_icon.update, icon, device)
|
GLib.idle_add(ui.status_icon.update, icon, device)
|
||||||
GLib.idle_add(ui.main_window.update, device, alert & ALERT.SHOW_WINDOW)
|
GLib.idle_add(ui.main_window.update, device, alert & ALERT.SHOW_WINDOW)
|
||||||
|
|
|
||||||
|
|
@ -425,7 +425,7 @@ def _update_device_box(frame, dev):
|
||||||
|
|
||||||
def update(device, popup=False):
|
def update(device, popup=False):
|
||||||
assert device is not None
|
assert device is not None
|
||||||
print ("main_window.update", device)
|
# print ("main_window.update", device)
|
||||||
|
|
||||||
receiver = device if device.kind is None else device.receiver
|
receiver = device if device.kind is None else device.receiver
|
||||||
w = _windows.get(receiver.path)
|
w = _windows.get(receiver.path)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue