Update interface name

test
reionwong 4 years ago
parent 947502cbea
commit ec72a93d30

@ -44,7 +44,7 @@ Authenticator::Authenticator(AuthenticationMode mode, QObject *parent)
, m_checkPass(nullptr)
{
m_graceLockTimer->setSingleShot(true);
m_graceLockTimer->setInterval(3000);
m_graceLockTimer->setInterval(1500);
connect(m_graceLockTimer, &QTimer::timeout, this, &Authenticator::graceLockedChanged);
if (mode == AuthenticationMode::Delayed) {

@ -26,7 +26,7 @@ int main(int argc, char *argv[])
{
Application app(argc, argv);
if (!QDBusConnection::sessionBus().registerService("org.cutefish.ScreenLocker")) {
if (!QDBusConnection::sessionBus().registerService("com.cutefish.ScreenLocker")) {
return -1;
}

@ -218,6 +218,7 @@ Item {
placeholderText: qsTr("Password")
leftPadding: FishUI.Units.largeSpacing
rightPadding: FishUI.Units.largeSpacing
enabled: !authenticator.graceLocked
focus: true
echoMode: TextInput.Password
@ -242,6 +243,7 @@ Item {
Layout.preferredWidth: 260
text: qsTr("Unlock")
onClicked: root.tryUnlock()
enabled: !authenticator.graceLocked
scale: unlockBtn.pressed ? 0.95 : 1.0
@ -319,18 +321,19 @@ Item {
Connections {
target: authenticator
function onFailed() {
notificationResetTimer.start()
root.notification = qsTr("Unlocking failed")
}
// function onGraceLockedChanged() {
// if (!authenticator.graceLocked) {
// root.notification = ""
// password.selectAll()
// password.focus = true
// }
// }
function onGraceLockedChanged() {
if (!authenticator.graceLocked) {
root.notification = ""
password.selectAll()
password.focus = true
}
}
function onMessage(text) {
notificationResetTimer.start()

Loading…
Cancel
Save