diff --git a/src/SettingsDialog.cpp b/src/SettingsDialog.cpp index 77361f7..d8153b0 100644 --- a/src/SettingsDialog.cpp +++ b/src/SettingsDialog.cpp @@ -5,6 +5,9 @@ #include "ui_SettingsDialog.h" #include +#include + +#include "Icons.h" Settings::Settings(QSharedPointer ctx, QWidget *parent) : QDialog(parent) @@ -15,13 +18,16 @@ Settings::Settings(QSharedPointer ctx, QWidget *parent) this->setWindowIcon(QIcon("://assets/images/appicons/64x64.png")); - ui->tabWidget->setTabVisible(2, false); - ui->tabWidget->setTabVisible(5, false); + ui->tabWidget->setTabVisible(3, false); + ui->tabWidget->setTabVisible(6, false); connect(ui->btnCopyToClipboard, &QPushButton::clicked, this, &Settings::copyToClipboard); connect(ui->checkBox_multiBroadcast, &QCheckBox::toggled, [](bool toggled){ config()->set(Config::multiBroadcast, toggled); }); + connect(ui->btn_multiBroadcast, &QPushButton::clicked, [this]{ + QMessageBox::information(this, "Multibroadcasting", "Multibroadcasting relays outgoing transactions to all nodes in your selected node list. This may improve transaction relay speed and reduces the chance of your transaction failing."); + }); connect(ui->checkBox_externalLink, &QCheckBox::clicked, this, &Settings::checkboxExternalLinkWarn); connect(ui->checkBox_hideBalance, &QCheckBox::toggled, [this](bool toggled){ config()->set(Config::hideBalance, toggled); diff --git a/src/SettingsDialog.ui b/src/SettingsDialog.ui index 9f83b36..75385eb 100644 --- a/src/SettingsDialog.ui +++ b/src/SettingsDialog.ui @@ -191,11 +191,61 @@ - - - Multibroadcast outgoing transactions + + + Qt::Vertical - + + + 20 + 0 + + + + + + + + + Privacy + + + + + + + + Multibroadcast outgoing transactions + + + + + + + + 0 + 0 + + + + ? + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + @@ -260,14 +310,14 @@ - + Qt::Vertical 20 - 0 + 40