mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-08 17:24:21 +02:00
i3-companion: remove skip code
Most of the time, we don't skip the update.
This commit is contained in:
parent
f0a7eca578
commit
9fff419b2d
1 changed files with 0 additions and 11 deletions
|
@ -453,17 +453,6 @@ async def network_manager_notifications(i3, event, path, state, reason):
|
||||||
async def network_manager_status(i3, event, *args):
|
async def network_manager_status(i3, event, *args):
|
||||||
"""Compute network manager status."""
|
"""Compute network manager status."""
|
||||||
ofnm = "org.freedesktop.NetworkManager"
|
ofnm = "org.freedesktop.NetworkManager"
|
||||||
# Skip AP updates when they are not about the current AccessPoint
|
|
||||||
# or not about Strength. Most of the time, updates are about that.
|
|
||||||
if (
|
|
||||||
isinstance(event, DBusSignal)
|
|
||||||
and event.interface == f"{ofnm}.AccessPoint"
|
|
||||||
):
|
|
||||||
path, props = args
|
|
||||||
if getattr(network_manager_status, "active_ap", None) != path:
|
|
||||||
return
|
|
||||||
if not "Strength" in props:
|
|
||||||
return
|
|
||||||
|
|
||||||
# Dampen updates
|
# Dampen updates
|
||||||
running = getattr(network_manager_status, "running", None)
|
running = getattr(network_manager_status, "running", None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue