shift-shell/components/mmplugin
Kevin Kofler 7e47315bcb 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.
2022-03-20 13:59:32 -04:00
..
CMakeLists.txt quicksettings: Make mobile data quick setting use NM API directly 2022-02-10 22:50:09 -05:00
mmqmlplugin.cpp Move mmplugin to components folder 2021-12-23 11:17:03 -05:00
mmqmlplugin.h Move mmplugin to components folder 2021-12-23 11:17:03 -05:00
qmldir Move mmplugin to components folder 2021-12-23 11:17:03 -05:00
signalindicator.cpp mmplugin: set all connections to not autoconnect on setMobileDataEnabled(false) (#182) 2022-03-20 13:59:32 -04:00
signalindicator.h mmplugin: Use NM autoconnect instead of wwanEnabled for mobile data 2022-02-12 23:08:23 -05:00