~jonas-drange/ubuntu-system-settings/no-empty-contexts-1433278

« back to all changes in this revision

Viewing changes to plugins/bluetooth/bluetooth.cpp

bluetooth: disable device visiblity when switching out, that way it's not
staying on if the settings are closed from the switcher or if the user switch
to another software Fixes: #1419874

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
    m_devices.stopDiscovery();
89
89
}
90
90
 
 
91
void Bluetooth::trySetDiscoverable(bool discoverable)
 
92
{
 
93
    m_devices.trySetDiscoverable(discoverable);
 
94
}
 
95
 
91
96
bool Bluetooth::isSupportedType(const int type)
92
97
{
93
98
    switch((Device::Type)type) {