Merge lp:~jonas-drange/ubuntu-system-settings/fix-ap-tests into lp:ubuntu-system-settings

Proposed by Jonas G. Drange
Status: Needs review
Proposed branch: lp:~jonas-drange/ubuntu-system-settings/fix-ap-tests
Merge into: lp:ubuntu-system-settings
Diff against target: 42 lines (+3/-15)
1 file modified
plugins/hotspot/PageComponent.qml (+3/-15)
To merge this branch: bzr merge lp:~jonas-drange/ubuntu-system-settings/fix-ap-tests
Reviewer Review Type Date Requested Status
system-apps-ci-bot continuous-integration Needs Fixing
PS Jenkins bot continuous-integration Needs Fixing
Ubuntu Touch System Settings Pending
Review via email: mp+287198@code.launchpad.net

Commit message

tests

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

1598. By Jonas G. Drange

use wifienabledswitch now that it works as it should

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/hotspot/PageComponent.qml'
2--- plugins/hotspot/PageComponent.qml 2015-09-18 14:18:11 +0000
3+++ plugins/hotspot/PageComponent.qml 2016-02-25 16:16:01 +0000
4@@ -32,20 +32,6 @@
5 title: i18n.tr("Hotspot")
6
7 states: [
8- State {
9- name: "disabled"
10- // Undefined WifiEnabled means Connectivity is unavailable.
11- when: typeof Connectivity.wifiEnabled === "undefined" ||
12- Connectivity.FlightMode
13- PropertyChanges {
14- target: hotspotItem
15- enabled: false
16- }
17- PropertyChanges {
18- target: hotspotSetupButton
19- enabled: false
20- }
21- },
22 State {
23 name: "nowifi"
24 when: Connectivity.wifiEnabled === false
25@@ -80,7 +66,8 @@
26 ListItem.Standard {
27 id: hotspotItem
28 text: i18n.tr("Hotspot")
29- enabled: Connectivity.hotspotStored
30+ enabled: (Connectivity.hotspotStored
31+ && Connectivity.hotspotSwitchEnabled)
32 onClicked: hotspotSwitch.trigger()
33 control: Switch {
34 id: hotspotSwitch
35@@ -118,6 +105,7 @@
36 width: parent.width - units.gu(4)
37 text: Connectivity.hotspotStored ?
38 i18n.tr("Change Password/Setup…") : i18n.tr("Set Up Hotspot…")
39+ enabled: Connectivity.hotspotSwitchEnabled
40 onClicked: {
41 setup.setSource(Qt.resolvedUrl("HotspotSetup.qml"));
42 PopupUtils.open(setup.item, root, {});

Subscribers

People subscribed via source and target branches