Commit 0feb3062 authored by Jan Grulich's avatar Jan Grulich

Add WireGuard at the end of the list of VPNs to make it correctly sorted

parent 557c4159
......@@ -175,15 +175,6 @@ CreatableConnectionsModel::CreatableConnectionsModel(QObject *parent)
QString(), QString(), true); // VpnType and SpecificType are empty
m_list << connectionItem;
// WireGuard changed from VPN plugin to primary device in version 1.16 of NetworkManager
if (NetworkManager::checkVersion(1, 16, 0)) {
connectionItem = new CreatableConnectionItem(i18n("WireGuard"), i18n("VPN connections"),
i18n("WireGuard"), QStringLiteral("network-vpn"),
NetworkManager::ConnectionSettings::WireGuard,
QStringLiteral("WireGuard"), QString(), true); // VpnType and SpecificType are empty
m_list << connectionItem;
}
if (Configuration::manageVirtualConnections()) {
connectionItem = new CreatableConnectionItem(i18n("Bond"), i18n("Virtual connections"),
i18n("Some bond description"), QStringLiteral("network-wired"),
......@@ -230,6 +221,16 @@ CreatableConnectionsModel::CreatableConnectionsModel(QObject *parent)
m_list << connectionItem;
}
// WireGuard changed from VPN plugin to primary device in version 1.16 of NetworkManager
if (NetworkManager::checkVersion(1, 16, 0)) {
connectionItem = new CreatableConnectionItem(i18n("WireGuard"), i18n("VPN connections"),
i18n("WireGuard"), QStringLiteral("network-vpn"),
NetworkManager::ConnectionSettings::WireGuard,
QStringLiteral("WireGuard"), QString(), true); // VpnType and SpecificType are empty
m_list << connectionItem;
}
// Placeholder for VPN import
connectionItem = new CreatableConnectionItem(i18n("Import VPN connection..."), i18n("Other"),
i18n("Import a saved configuration file"), QStringLiteral("document-import"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment