[Kde-hardware-devel] Review Request 121526: Correctly maintain connecting state and connection icons.

Jan Grulich jgrulich at redhat.com
Mon Dec 15 08:34:18 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121526/#review72026
-----------------------------------------------------------



libs/declarative/connectionicon.cpp
<https://git.reviewboard.kde.org/r/121526/#comment50211>

    I'm not sure if removing this is safe. I remember adding this check was necessary to make it work properly in some cases. If NM will update just VPN state and not ActiveConnection state, it won't show connecting indicator for a VPN connection which is being activated.


- Jan Grulich


On Pro. 15, 2014, 4:10 dop., Xuetian Weng wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121526/
> -----------------------------------------------------------
> 
> (Updated Pro. 15, 2014, 4:10 dop.)
> 
> 
> Review request for Solid and Jan Grulich.
> 
> 
> Repository: plasma-nm
> 
> 
> Description
> -------
> 
> m_connecting is not always maintained correctly, thus it causes some problem on plasmoid side. In the old code, if there are multiple connections, activeConnectionDestroy might set connecting to wrong value if there's another connection connecting.
> 
> This patch introduce ConnectionIcon::setStates() function, which always scan through all active connections (number of active connections is relatively small so it won't affect performance), and set connecting to true if any connection is in "Activtating" state.
> 
> This patch also introduces set{Connecting,ConnectionIcon,ConnectionTooltipIcon,Vpn,Limited} function, to emit the corresponding signal when the value actually changes.
> 
> Some old code in activeConnectionAdded is now moved to addActiveConection, whose job is to connect to the destroyed signal and state changed signal on active connection. actionConnectionAdded now calls addActiveConnection() and setStates() to preserve the old behavior. This separation is also necessary for the constructor so we can call setStates() only once in the constructor.
> 
> Another small change in QML is to stop busy indicator when plasmoid is not expanded, or busy indicator is not visible.
> 
> 
> Diffs
> -----
> 
>   applet/contents/ui/ConnectionItem.qml 480ce99 
>   libs/declarative/connectionicon.h e6e28af 
>   libs/declarative/connectionicon.cpp 7e76a0a 
> 
> Diff: https://git.reviewboard.kde.org/r/121526/diff/
> 
> 
> Testing
> -------
> 
> Connect on a wifi connection when wifi is connected now correctly triggers busy indicator in compact representation.
> 
> 
> Thanks,
> 
> Xuetian Weng
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20141215/255121c4/attachment-0001.html>


More information about the Kde-hardware-devel mailing list