aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/controller/ModuleControllerDialog.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-28 16:00:30 +0000
committersaturneric <[email protected]>2024-07-28 16:00:30 +0000
commitcb626d06dee921426a2ea97662f6237e21a8781b (patch)
treea6724ad799695c9b6b807c4e637a69842a82549a /src/ui/dialog/controller/ModuleControllerDialog.cpp
parentfeat: search for keywords in all uids (diff)
downloadGpgFrontend-cb626d06dee921426a2ea97662f6237e21a8781b.tar.gz
GpgFrontend-cb626d06dee921426a2ea97662f6237e21a8781b.zip
feat: user can prevent all modules
Diffstat (limited to '')
-rw-r--r--src/ui/dialog/controller/ModuleControllerDialog.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ui/dialog/controller/ModuleControllerDialog.cpp b/src/ui/dialog/controller/ModuleControllerDialog.cpp
index aa69eb5a..e7c0d5fe 100644
--- a/src/ui/dialog/controller/ModuleControllerDialog.cpp
+++ b/src/ui/dialog/controller/ModuleControllerDialog.cpp
@@ -103,8 +103,18 @@ ModuleControllerDialog::ModuleControllerDialog(QWidget* parent)
});
#ifdef RELEASE
- ui_->tabWidget->setTabEnabled(2, false);
+ ui_->tabWidget->setTabVisible(2, false);
#endif
+
+ // give user ability to give up all modules
+ auto disable_loading_all_modules =
+ GlobalSettingStation::GetInstance()
+ .GetSettings()
+ .value("basic/disable_loading_all_modules", false)
+ .toBool();
+ if (disable_loading_all_modules) {
+ ui_->tabWidget->setTabEnabled(0, false);
+ }
}
void ModuleControllerDialog::slot_load_module_details(