Thank you so much! Will test it.
// Peter Pykäläinen On 15 October 2014 00:30, Basil Semuonov <basil.semuo...@gmail.com> wrote: > You should use 'status' property, not 'state'. > > > https://sailfishos.org/sailfish-silica/qml-sailfishsilica-cover.html#status-prop > > On Tue, Oct 14, 2014 at 11:28 PM, Peter Pykäläinen < > peter.pykalai...@gmail.com> wrote: > >> 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 >> >> _______________________________________________ >> SailfishOS.org Devel mailing list >> To unsubscribe, please send a mail to >> devel-unsubscr...@lists.sailfishos.org >> > > > > -- > Semuonov Basil > --- Line of cut --- Linux everywhere... > > _______________________________________________ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to > devel-unsubscr...@lists.sailfishos.org >
_______________________________________________ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org