From f55ad83dab6fcce9c6a2cda9c4ab92abca3fa89b Mon Sep 17 00:00:00 2001 From: Papoteur Date: Mon, 24 Dec 2018 12:09:10 +0100 Subject: Better presentation for network connections --- qml/mageiawelcome.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py index 0870f6b..c6bedd0 100644 --- a/qml/mageiawelcome.py +++ b/qml/mageiawelcome.py @@ -43,10 +43,14 @@ class ConfList(QAbstractListModel): # Search active network connections net = QNetworkConfigurationManager() - netconfs = "" + first = True if net.isOnline(): confs = net.allConfigurations(QNetworkConfiguration.Active) for conf in confs: + if first: + netconfs = conf.name() + first = False + else: netconfs += ", " + conf.name() self.configuration = [ -- cgit v1.2.1