diff options
author | Papoteur <papoteur@mageia.org> | 2018-12-24 12:09:10 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2018-12-25 10:19:15 +0100 |
commit | f55ad83dab6fcce9c6a2cda9c4ab92abca3fa89b (patch) | |
tree | fbd7c882a7b5bc145e216a5b85a61dc1cba3fee7 | |
parent | a3be597adaf79b1b5509acac0a6fc2935fe90a12 (diff) | |
download | mageiawelcome-f55ad83dab6fcce9c6a2cda9c4ab92abca3fa89b.tar mageiawelcome-f55ad83dab6fcce9c6a2cda9c4ab92abca3fa89b.tar.gz mageiawelcome-f55ad83dab6fcce9c6a2cda9c4ab92abca3fa89b.tar.bz2 mageiawelcome-f55ad83dab6fcce9c6a2cda9c4ab92abca3fa89b.tar.xz mageiawelcome-f55ad83dab6fcce9c6a2cda9c4ab92abca3fa89b.zip |
Better presentation for network connections
-rw-r--r-- | qml/mageiawelcome.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 = [ |