diff options
author | saturneric <[email protected]> | 2024-12-01 21:14:06 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-12-01 21:14:06 +0000 |
commit | fcc31759f8c09e24f001c17549e95d65fc1a484c (patch) | |
tree | 181795269fad379ac79f35e53a3206cd11f99a21 /src/m_gpg_info/GnupgTab.cpp | |
parent | feat: check commit hash by current version (diff) | |
download | Modules-fcc31759f8c09e24f001c17549e95d65fc1a484c.tar.gz Modules-fcc31759f8c09e24f001c17549e95d65fc1a484c.zip |
fix: gnupg info not loading
Diffstat (limited to 'src/m_gpg_info/GnupgTab.cpp')
-rw-r--r-- | src/m_gpg_info/GnupgTab.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/m_gpg_info/GnupgTab.cpp b/src/m_gpg_info/GnupgTab.cpp index 6548316..7c64cdf 100644 --- a/src/m_gpg_info/GnupgTab.cpp +++ b/src/m_gpg_info/GnupgTab.cpp @@ -108,14 +108,14 @@ GnupgTab::GnupgTab(QWidget* parent) ui_->optionDetailsTable->setFocusPolicy(Qt::NoFocus); ui_->optionDetailsTable->setAlternatingRowColors(true); - auto future = (QThreadPool::globalInstance(), [=]() { - if (GFModuleRetrieveRTValueOrDefaultBool( - DUP("ui"), DUP("env.state.gnupg_info_gathering"), 0) == 1) { - process_software_info(); - } else { - gather_gnupg_info(); - } - }); + if (GFModuleRetrieveRTValueOrDefaultBool( + DUP("ui"), DUP("env.state.gnupg_info_gathering"), 0) == 1) { + process_software_info(); + + } else { + auto future = QtConcurrent::run(QThreadPool::globalInstance(), + [=]() { gather_gnupg_info(); }); + } } void GnupgTab::process_software_info() { |