update Jenkinsfile

This commit is contained in:
Michele Balistreri 2021-09-29 17:49:30 +03:00 committed by Iuri Matias
parent 7d8be3fc40
commit a22d936df7
3 changed files with 11 additions and 8 deletions

View File

@ -4,7 +4,7 @@ pipeline {
agent {
docker {
label 'linux'
image 'statusteam/nim-status-client-build:1.0.3'
image 'statusteam/nim-status-client-build:1.0.4'
/* allows jenkins use cat and mounts '/dev/fuse' for linuxdeployqt */
args '--entrypoint="" --cap-add SYS_ADMIN --security-opt apparmor:unconfined --device /dev/fuse'
}

View File

@ -33,8 +33,10 @@ proc getCardState(self: KeycardController) =
self.view.cardState = PreInit
elif self.attemptOpenSecureChannel():
self.view.cardState = Paired
else:
elif appInfo.availableSlots > 0:
self.view.cardState = Unpaired
else:
self.view.cardState = NoFreeSlots
proc init*(self: KeycardController) =
discard """

View File

@ -11,10 +11,11 @@ type
NotKeycard = 1
PreInit = 2
Unpaired = 3
Paired = 4
Frozen = 5
Blocked = 6
Authenticated = 7
NoFreeSlots = 4
Paired = 5
Frozen = 6
Blocked = 7
Authenticated = 8
QtObject:
type KeycardView* = ref object of QObject