aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-17 20:03:47 +0000
committersaturneric <[email protected]>2025-04-17 20:03:47 +0000
commit8d105bf56380842e1c2092fc6c32591fd47c68af (patch)
tree55d4ab3a00d30b78a0fbb9ef2792e002162a84f2
parentfix: issues found on linux platform (diff)
downloadGpgFrontend-8d105bf56380842e1c2092fc6c32591fd47c68af.tar.gz
GpgFrontend-8d105bf56380842e1c2092fc6c32591fd47c68af.zip
fix: refresh button should be able to restart scd listening timer
-rw-r--r--src/ui/dialog/controller/SmartCardControllerDialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/dialog/controller/SmartCardControllerDialog.cpp b/src/ui/dialog/controller/SmartCardControllerDialog.cpp
index 530f2e7e..a029dcbd 100644
--- a/src/ui/dialog/controller/SmartCardControllerDialog.cpp
+++ b/src/ui/dialog/controller/SmartCardControllerDialog.cpp
@@ -337,6 +337,11 @@ void SmartCardControllerDialog::print_smart_card_info() {
}
void SmartCardControllerDialog::slot_refresh() {
+ scd_version_supported_ =
+ GpgSmartCardManager::GetInstance(channel_).IsSCDVersionSupported();
+ if (scd_version_supported_ && !timer_->isActive()) {
+ timer_->start(3000);
+ }
fetch_smart_card_info(ui_->currentCardComboBox->currentText());
}