kcms/cellularnetworks: Don't prompt for password when unnecessary

scanDevices() is actually unnecessary here, and causes the polkit prompt to pop up as soon as the kcm is opened.

See https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/blob/main/data/org.freedesktop.ModemManager1.conf.polkit
This commit is contained in:
Devin Lin 2023-12-15 18:53:37 -08:00
parent 09b3964906
commit c35e4a94d9

View file

@ -69,11 +69,6 @@ bool CellularNetworkSettings::modemFound()
void CellularNetworkSettings::updateModemList()
{
// find modems
ModemManager::scanDevices();
qDebug() << QStringLiteral("Scanning for modems...");
// loop over every modem
for (ModemManager::ModemDevice::Ptr device : ModemManager::modemDevices()) {
ModemManager::Modem::Ptr modem = device->modemInterface();