mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-07 11:20:47 +03:00
Move title logic to function
This commit is contained in:
parent
146d55b838
commit
c9c9dce00f
@ -12,7 +12,7 @@ ApplicationWindow {
|
|||||||
minimumHeight: 400
|
minimumHeight: 400
|
||||||
minimumWidth: 300
|
minimumWidth: 300
|
||||||
visible: true
|
visible: true
|
||||||
title: qsTr("Yubico Authenticator") + (settings.slotMode ? qsTr(" [Slot mode]") : '')
|
title: getTitle()
|
||||||
property var device: yk
|
property var device: yk
|
||||||
property var credentials: device.credentials
|
property var credentials: device.credentials
|
||||||
property bool validated: device.validated
|
property bool validated: device.validated
|
||||||
@ -561,4 +561,8 @@ ApplicationWindow {
|
|||||||
addCredential.open()
|
addCredential.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getTitle() {
|
||||||
|
return qsTr("Yubico Authenticator") + (settings.slotMode ? qsTr(" [Slot mode]") : '')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user