[SailfishDevel] CoverBackground onStateChanged not triggered

Peter Pykäläinen peter.pykalainen at gmail.com
Tue Oct 14 19:28:44 UTC 2014


Hi,

any idea why the CoverBackgrounds onStateChanged does not fire in this code
sample:

CoverBackground {
onStateChanged: {

        console.debug("--> Cover state = " + state);

        if (state === Cover.Active)

            console.debug("--> Do stuff!!!");

    }


If I create a timer with running: state===Cover.Active the timer runs when
the cover is active and stops when it's not.

I'd really like to update some stuff on my cover everytime it comes visible.

// Peter Pykäläinen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20141014/1912c642/attachment.html>


More information about the Devel mailing list