Ticket #4430: 0002-Frame-Wireless-Device-icon-make-sure-the-Ssid-is-dis.patch

File 0002-Frame-Wireless-Device-icon-make-sure-the-Ssid-is-dis.patch, 1.4 KB (added by erikos, 11 years ago)

Frame, Wireless Device icon: make sure the Ssid is displayed in the connected state

  • extensions/deviceicon/network.py

    From 89f24ab94c080450470fcf6e9d8a36cc397c730d Mon Sep 17 00:00:00 2001
    From: Simon Schampijer <simon@laptop.org>
    Date: Mon, 18 Feb 2013 10:15:14 +0100
    Subject: [PATCH 2/2] Frame, Wireless Device icon: make sure the Ssid is
     displayed in the connected state, SL #4430
    
    In the connection status code we left out a few states of the
    connecting phase and therefore ended in the disconnected code
    path for those, hence giving false user feedback about the
    current state.
    
    Signed-off-by: Simon Schampijer <simon@laptop.org>
    ---
     extensions/deviceicon/network.py | 4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/extensions/deviceicon/network.py b/extensions/deviceicon/network.py
    index ab3b73f..5475407 100644
    a b class WirelessDeviceView(ToolButton): 
    556556        if state == network.NM_DEVICE_STATE_PREPARE or \
    557557           state == network.NM_DEVICE_STATE_CONFIG or \
    558558           state == network.NM_DEVICE_STATE_NEED_AUTH or \
    559            state == network.NM_DEVICE_STATE_IP_CONFIG:
     559           state == network.NM_DEVICE_STATE_IP_CONFIG or \
     560           state == network.NM_DEVICE_STATE_IP_CHECK or \
     561           state == network.NM_DEVICE_STATE_SECONDARIES:
    560562            self._palette.set_connecting()
    561563            self._icon.props.pulsing = True
    562564        elif state == network.NM_DEVICE_STATE_ACTIVATED: