Skip to content
Commit 7e47315b authored by Kevin Kofler's avatar Kevin Kofler Committed by Devin Lin
Browse files

mmplugin: set all connections to not autoconnect on setMobileDataEnabled(false) (#182)

When disabling mobile data, instead of setting the autoconnect flag to
true for the current active connection, set it to false for all
connections without exception. When reenabling mobile data, instead of
looking for a connection with autoconnect set, look for the connection
with the latest last use timestamp, set that one to autoconnect, and
also connect it immediately.

There should not be any connection with autoconnect enabled if mobile
data is disabled, because that makes NetworkManager reconnect it after a
reboot or a modem restart. The autoconnect state on the modem is
apparently lost on reboot.

Also change the SignalIndicator::mobileDataEnabled() getter to account
for the above.

Fixes #182.
parent 0ce673f7
Pipeline #152913 passed with stages
in 1 minute and 4 seconds
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