Skip to content

Commit

Permalink
Fix locking from oxide with no pin set
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Jan 9, 2021
1 parent 5f2c075 commit 741d1c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion applications/lockscreen/controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,19 @@ class Controller : public QObject {
QTime nextTime = currentTime.addSecs(60 - currentTime.second());
clockTimer->setInterval(currentTime.msecsTo(nextTime)); // nearest minute
QObject::connect(clockTimer , &QTimer::timeout, this, &Controller::updateClock);
clockTimer ->start();
clockTimer->start();

if(!settings.contains("pin")){
qDebug() << "First launch";
QTimer::singleShot(100, [this]{
stateControllerUI->setProperty("state", xochitlPin().isEmpty() ? "firstLaunch" : "import");
});
return;
}

if(!storedPin().length()){
qDebug() << "No pin set";
setState("loading");
previousApplication();
return;
}
Expand Down

0 comments on commit 741d1c3

Please sign in to comment.