aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-04-30 17:58:11 +0000
committersaturneric <[email protected]>2024-04-30 17:58:11 +0000
commit87dc0be5873c144513eace2abc0460657c2723eb (patch)
treeca16caee6d6b0e8679af5fdaf07870fa4b131411
parentfix: can not find mods on macos platform (diff)
downloadGpgFrontend-87dc0be5873c144513eace2abc0460657c2723eb.tar.gz
GpgFrontend-87dc0be5873c144513eace2abc0460657c2723eb.zip
feat: add progress bar at gnupg info tab
Diffstat (limited to '')
-rw-r--r--src/ui/dialog/help/GnupgTab.cpp6
-rw-r--r--ui/GnuPGInfo.ui13
2 files changed, 19 insertions, 0 deletions
diff --git a/src/ui/dialog/help/GnupgTab.cpp b/src/ui/dialog/help/GnupgTab.cpp
index 3dfdd994..07f07b82 100644
--- a/src/ui/dialog/help/GnupgTab.cpp
+++ b/src/ui/dialog/help/GnupgTab.cpp
@@ -296,6 +296,9 @@ void GnupgTab::process_software_info() {
row++;
}
}
+
+ ui_->loadProgressBar->hide();
+ ui_->tabWidget->setDisabled(false);
// ui_->configurationDetailsTable->resizeColumnsToContents();
}
@@ -306,6 +309,9 @@ void GnupgTab::gather_gnupg_info() {
"module gnupg_info_gathering is activated, "
"loading external gnupg info...");
+ ui_->loadProgressBar->show();
+ ui_->tabWidget->setDisabled(true);
+
// gather external gnupg info
Module::TriggerEvent(
"REQUEST_GATHERING_GNUPG_INFO",
diff --git a/ui/GnuPGInfo.ui b/ui/GnuPGInfo.ui
index 19479a77..63e746a5 100644
--- a/ui/GnuPGInfo.ui
+++ b/ui/GnuPGInfo.ui
@@ -108,6 +108,19 @@
</property>
</widget>
</item>
+ <item row="1" column="0">
+ <widget class="QProgressBar" name="loadProgressBar">
+ <property name="maximum">
+ <number>0</number>
+ </property>
+ <property name="value">
+ <number>-1</number>
+ </property>
+ <property name="textVisible">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
<widget class="QWidget" name="tab_2">