Commit c8ad45d8 authored by Aviator's avatar Aviator 💬

Remove Hidden Settings

parent 19e4a40f
......@@ -130,48 +130,6 @@
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0">
<property name="sizeConstraint">
<enum>QLayout::SetFixedSize</enum>
</property>
<item>
<widget class="QLabel" name="labelPreferredDenom">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Wait with automatic conversion to Zerocoin until enough MERGE for this denomination is available</string>
</property>
<property name="text">
<string>Preferred Automint zMERGE Denomination</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="preferredDenom">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>27</height>
</size>
</property>
<property name="toolTip">
<string>Wait with automatic conversion to Zerocoin until enough MERGE for this denomination is available</string>
</property>
<property name="maxVisibleItems">
<number>9</number>
</property>
<property name="maxCount">
<number>9</number>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabWallet">
......
......@@ -45,8 +45,6 @@ OptionsDialog::OptionsDialog(QWidget* parent, bool enableWallet) : QDialog(paren
ui->databaseCache->setMaximum(nMaxDbCache);
ui->threadsScriptVerif->setMinimum(-(int)boost::thread::hardware_concurrency());
ui->threadsScriptVerif->setMaximum(MAX_SCRIPTCHECK_THREADS);
ui->preferredDenom->setVisible(false);
ui->labelPreferredDenom->setVisible(false);
/* Network elements init */
#ifndef USE_UPNP
......@@ -178,9 +176,6 @@ void OptionsDialog::setMapper()
mapper->addMapping(ui->threadsScriptVerif, OptionsModel::ThreadsScriptVerif);
mapper->addMapping(ui->databaseCache, OptionsModel::DatabaseCache);
// Zerocoin preferred denomination
mapper->addMapping(ui->preferredDenom, OptionsModel::ZeromintPrefDenom);
/* Wallet */
mapper->addMapping(ui->spendZeroConfChange, OptionsModel::SpendZeroConfChange);
mapper->addMapping(ui->coinControlFeatures, OptionsModel::CoinControlFeatures);
......
......@@ -73,18 +73,6 @@ void OptionsModel::Init()
settings.setValue("fCoinControlFeatures", false);
fCoinControlFeatures = settings.value("fCoinControlFeatures", false).toBool();
if (!settings.contains("nPreferredDenom"))
settings.setValue("nPreferredDenom", 0);
nPreferredDenom = settings.value("nPreferredDenom", "0").toLongLong();
if (!settings.contains("nZeromintPercentage"))
settings.setValue("nZeromintPercentage", 10);
nZeromintPercentage = settings.value("nZeromintPercentage").toLongLong();
if (!settings.contains("nAnonymizeMergeAmount"))
settings.setValue("nAnonymizeMergeAmount", 1000);
nAnonymizeMergeAmount = settings.value("nAnonymizeMergeAmount").toLongLong();
if (!settings.contains("fShowMasternodesTab"))
settings.setValue("fShowMasternodesTab", masternodeConfig.getCount());
......@@ -148,13 +136,6 @@ void OptionsModel::Init()
if (!SoftSetArg("-lang", settings.value("language").toString().toStdString()))
addOverriddenOption("-lang");
if (settings.contains("nZeromintPercentage"))
SoftSetArg("-zeromintpercentage", settings.value("nZeromintPercentage").toString().toStdString());
if (settings.contains("nPreferredDenom"))
SoftSetArg("-preferredDenom", settings.value("nPreferredDenom").toString().toStdString());
if (settings.contains("nAnonymizeMergeAmount"))
SoftSetArg("-anonymizeMergeamount", settings.value("nAnonymizeMergeAmount").toString().toStdString());
language = settings.value("language").toString();
}
......@@ -231,12 +212,6 @@ QVariant OptionsModel::data(const QModelIndex& index, int role) const
return settings.value("nDatabaseCache");
case ThreadsScriptVerif:
return settings.value("nThreadsScriptVerif");
case ZeromintPercentage:
return QVariant(nZeromintPercentage);
case ZeromintPrefDenom:
return QVariant(nPreferredDenom);
case AnonymizeMERGEAmount:
return QVariant(nAnonymizeMergeAmount);
case Listen:
return settings.value("fListen");
default:
......@@ -340,22 +315,6 @@ bool OptionsModel::setData(const QModelIndex& index, const QVariant& value, int
setRestartRequired(true);
}
break;
case ZeromintPercentage:
nZeromintPercentage = value.toInt();
settings.setValue("nZeromintPercentage", nZeromintPercentage);
emit zeromintPercentageChanged(nZeromintPercentage);
break;
case ZeromintPrefDenom:
nPreferredDenom = value.toInt();
settings.setValue("nPreferredDenom", nPreferredDenom);
emit preferredDenomChanged(nPreferredDenom);
break;
case AnonymizeMERGEAmount:
nAnonymizeMergeAmount = value.toInt();
settings.setValue("nAnonymizeMergeAmount", nAnonymizeMergeAmount);
emit anonymizeMERGEAmountChanged(nAnonymizeMergeAmount);
break;
case CoinControlFeatures:
fCoinControlFeatures = value.toBool();
settings.setValue("fCoinControlFeatures", fCoinControlFeatures);
......
......@@ -43,9 +43,6 @@ public:
ThreadsScriptVerif, // int
DatabaseCache, // int
SpendZeroConfChange, // bool
ZeromintPercentage, // int
ZeromintPrefDenom, // int
AnonymizeMERGEAmount, //int
ShowMasternodesTab, // bool
Listen, // bool
OptionIDRowCount,
......@@ -90,9 +87,6 @@ private:
signals:
void displayUnitChanged(int unit);
void zeromintPercentageChanged(int);
void preferredDenomChanged(int);
void anonymizeMERGEAmountChanged(int);
void coinControlFeaturesChanged(bool);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment