mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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:
parent
09b3964906
commit
c35e4a94d9
1 changed files with 0 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue