Unverified Commit ef9ec476 authored by David Rosca's avatar David Rosca
Browse files

DeviceMonitor: Remove saving/restoring blocked state

It is handled by systemd for some time now and this only conflicts with it.
parent 492b2936
......@@ -107,9 +107,6 @@ void DeviceMonitor::login1PrepareForSleep(bool active)
void DeviceMonitor::saveState()
{
KConfigGroup globalGroup = m_config->group("Global");
globalGroup.writeEntry<bool>(QStringLiteral("bluetoothBlocked"), m_manager->isBluetoothBlocked());
KConfigGroup adaptersGroup = m_config->group("Adapters");
Q_FOREACH (BluezQt::AdapterPtr adapter, m_manager->adapters()) {
......@@ -133,9 +130,6 @@ void DeviceMonitor::saveState()
void DeviceMonitor::restoreState()
{
KConfigGroup globalGroup = m_config->group("Global");
m_manager->setBluetoothBlocked(globalGroup.readEntry<bool>(QStringLiteral("bluetoothBlocked"), false));
KConfigGroup adaptersGroup = m_config->group("Adapters");
Q_FOREACH (BluezQt::AdapterPtr adapter, m_manager->adapters()) {
......
Supports Markdown
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