File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929#include " SettingsDialog.h"
3030
3131#include " core/GpgConstants.h"
32+ #include " core/utils/CommonUtils.h"
3233#include " ui/dialog/settings/SettingsAppearance.h"
3334#include " ui/dialog/settings/SettingsGeneral.h"
3435#include " ui/dialog/settings/SettingsKeyDatabases.h"
@@ -51,7 +52,13 @@ SettingsDialog::SettingsDialog(QWidget* parent)
5152
5253 tab_widget_->addTab (general_tab_, tr (" General" ));
5354 tab_widget_->addTab (appearance_tab_, tr (" Appearance" ));
54- tab_widget_->addTab (network_tab_, tr (" Network" ));
55+
56+ // network settings is not available in sandbox environment, so only add the
57+ // tab when not running in sandbox
58+ if (!IsRunningInSandBox ()) {
59+ tab_widget_->addTab (network_tab_, tr (" Network" ));
60+ }
61+
5562 tab_widget_->addTab (key_dbs_tab_, tr (" Key Databases" ));
5663
5764#ifdef Q_OS_MACOS
You can’t perform that action at this time.
0 commit comments