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