Merge pull request #292 from UdjinM6/fix_UI_masternode_litemode
Fix UI in masternode and lite modes
This commit is contained in:
commit
24cd4665ba
@ -135,15 +135,15 @@ OverviewPage::OverviewPage(QWidget *parent) :
|
||||
|
||||
if(fLiteMode){
|
||||
ui->frameDarksend->setVisible(false);
|
||||
} else {
|
||||
} else if(!fMasterNode) {
|
||||
timer = new QTimer(this);
|
||||
connect(timer, SIGNAL(timeout()), this, SLOT(darkSendStatus()));
|
||||
timer->start(333);
|
||||
}
|
||||
|
||||
if(fMasterNode || fLiteMode){
|
||||
if(fMasterNode){
|
||||
ui->toggleDarksend->setText("(" + tr("Disabled") + ")");
|
||||
ui->toggleDarksend->setEnabled(false);
|
||||
ui->frameDarksend->setEnabled(false);
|
||||
}else if(!fEnableDarksend){
|
||||
ui->toggleDarksend->setText(tr("Start Darksend Mixing"));
|
||||
} else {
|
||||
@ -162,7 +162,7 @@ void OverviewPage::handleTransactionClicked(const QModelIndex &index)
|
||||
|
||||
OverviewPage::~OverviewPage()
|
||||
{
|
||||
if(!fLiteMode) disconnect(timer, SIGNAL(timeout()), this, SLOT(darkSendStatus()));
|
||||
if(!fLiteMode && !fMasterNode) disconnect(timer, SIGNAL(timeout()), this, SLOT(darkSendStatus()));
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
@ -46,6 +46,13 @@ SendCoinsDialog::SendCoinsDialog(QWidget *parent) :
|
||||
connect(ui->pushButtonCoinControl, SIGNAL(clicked()), this, SLOT(coinControlButtonClicked()));
|
||||
connect(ui->checkBoxCoinControlChange, SIGNAL(stateChanged(int)), this, SLOT(coinControlChangeChecked(int)));
|
||||
connect(ui->lineEditCoinControlChange, SIGNAL(textEdited(const QString &)), this, SLOT(coinControlChangeEdited(const QString &)));
|
||||
|
||||
// Dash specific
|
||||
if(fLiteMode) {
|
||||
ui->checkUseDarksend->setChecked(false);
|
||||
ui->checkUseDarksend->setVisible(false);
|
||||
ui->checkInstantX->setVisible(false);
|
||||
}
|
||||
connect(ui->checkUseDarksend, SIGNAL(stateChanged ( int )), this, SLOT(updateDisplayUnit()));
|
||||
connect(ui->checkInstantX, SIGNAL(stateChanged ( int )), this, SLOT(updateInstantX()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user