settings: bluetooth: switch from Component.onCompleted power event 21/19621/2 6.0.4 flounder/6.0.4 flounder_6.0.4
authorMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 16 Jan 2019 06:46:15 +0000 (22:46 -0800)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 16 Jan 2019 06:54:37 +0000 (22:54 -0800)
commitbd354afb7d8936c5f50eb2f1980b64ee55ded862
treec99562691cf935f2c9bb1009137fd2a72b38f56b
parent3f16f45cdf928cfc500a86e20e6c7e5a45ce3832
settings: bluetooth: switch from Component.onCompleted power event

Race condition between QML components finishing loadings before libqtappfw
access can happen. So use the the onPowerChanged event as before, but to avoid
infinite loop of power changes don't changed checked field if already set.

Bug-AGL: SPEC-2004
Change-Id: Ie54ca405cab70e1bb909005dce602a56ccb0e8ba
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
app/bluetooth/Bluetooth.qml