From 4acb98be4475d41df1a6f7549dbae1c1f561f08d Mon Sep 17 00:00:00 2001 From: Bas van Driel Date: Wed, 11 Dec 2024 10:38:40 +0100 Subject: [PATCH 1/2] Remove reset --- app/page/creatersakey.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/page/creatersakey.py b/app/page/creatersakey.py index 60dcec8..634ae75 100644 --- a/app/page/creatersakey.py +++ b/app/page/creatersakey.py @@ -46,8 +46,7 @@ def nextId(self): # If the YubiKey is filled and the checkbox is not checked, do not proceed print("Not Completed 0") return self.wizard().currentId() - if self.checkIfYubiKeyFilled(self.wizard().property("selectedYubiKey")): - os.system("ykman piv reset --force") + # Start the key creation process QTimer.singleShot(1000, self.startKeyCreationProcess) self.alreadycalled = True From 547c8a293ca8135c70a0a496bcaa71ec12242d9e Mon Sep 17 00:00:00 2001 From: Bas van Driel Date: Wed, 11 Dec 2024 10:39:50 +0100 Subject: [PATCH 2/2] work --- app/page/creatersakey.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app/page/creatersakey.py b/app/page/creatersakey.py index 634ae75..0f04a87 100644 --- a/app/page/creatersakey.py +++ b/app/page/creatersakey.py @@ -1,4 +1,3 @@ -import os from PyQt6.QtWidgets import QWizardPage, QVBoxLayout, QCheckBox, QLabel, QWizard from PyQt6.QtCore import QTimer import PyKCS11