Commit fa516102 authored by Jan Grulich's avatar Jan Grulich
Browse files

Do not display wireless or mobile broadband switch when there is no such device

Conflicts:
	applet/declarative/contents/ui/Toolbar.qml
parent 3dfd43a2
......@@ -55,6 +55,7 @@ Item {
checked: enabled && enabledConnections.wirelessEnabled;
enabled: enabledConnections.wirelessHwEnabled && availableDevices.wirelessDeviceAvailable && !globalConfig.airplaneModeEnabled;
icon: checked ? "network-wireless-on" : "network-wireless-off";
visible: availableDevices.wirelessDeviceAvailable;
onClicked: {
handler.enableWireless(!checked);
......@@ -67,6 +68,7 @@ Item {
checked: enabled && enabledConnections.wwanEnabled;
enabled: enabledConnections.wwanHwEnabled && availableDevices.modemDeviceAvailable && !globalConfig.airplaneModeEnabled;
icon: checked ? "network-mobile-on" : "network-mobile-off";
visible: availableDevices.modemDeviceAvailable;
onClicked: {
handler.enableWwan(!checked);
......
Markdown is supported
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