mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
networking: handle omitted mode setting in NM
This commit is contained in:
1 parent
39e14d3627
commit
052059fb7c
1 file changed
+2
-1
@@ -124,7 +124,8 @@ void NMWirelessDevice::onSettingsLoaded(NMSettings* settings) {
|
||||
const auto ssid = map["802-11-wireless"]["ssid"].toString();
|
||||
const auto mode = map["802-11-wireless"]["mode"].toString();
|
||||
|
||||
if (mode == "infrastructure") {
|
||||
// Omitted mode is assumed to be "infrastructure".
|
||||
if (mode.isEmpty() || mode == "infrastructure") {
|
||||
auto* net = this->mNetworks.value(ssid);
|
||||
if (!net) net = this->registerNetwork(ssid);
|
||||
net->addSettings(settings);
|
||||
|
||||
Reference in new issue
Block a user