~feng-kylin/ubuntu-settings-components/addSupportToOpenUrlInIndicator

« back to all changes in this revision

Viewing changes to Ubuntu/Settings/Menus/AccessPointMenu.qml

  • Committer: CI bot
  • Author(s): Nick Dedekind
  • Date: 2014-05-02 13:50:32 UTC
  • mfrom: (65.1.2 ubuntu-settings-components)
  • Revision ID: ps-jenkins@lists.canonical.com-20140502135032-ovi70n7p4jz57na1
Fixed issue with Access Point checkbox not fetching initial value. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
            verticalCenter: parent.verticalCenter
48
48
        }
49
49
 
 
50
        // need onCompleted to set the initial value
 
51
        // can't use binding otherwise we will get feedback from connections.
 
52
        Component.onCompleted: {
 
53
            enableCheckConnection = false;
 
54
            checked = menu.checked;
 
55
            enableCheckConnection = true;
 
56
        }
 
57
 
50
58
        // FIXME : should use Checkbox.toggled signal
51
59
        // lp:~nick-dedekind/ubuntu-ui-toolkit/checkbox.toggled
52
60
        onCheckedChanged: {