|
|
@ -571,6 +571,8 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
|
|
|
|
clear();
|
|
|
|
clear();
|
|
|
|
|
|
|
|
|
|
|
|
GUIUtil::handleCloseWindowShortcut(this);
|
|
|
|
GUIUtil::handleCloseWindowShortcut(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateWindowTitle();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
RPCConsole::~RPCConsole()
|
|
|
|
RPCConsole::~RPCConsole()
|
|
|
@ -1368,3 +1370,13 @@ void RPCConsole::updateAlerts(const QString& warnings)
|
|
|
|
this->ui->label_alerts->setVisible(!warnings.isEmpty());
|
|
|
|
this->ui->label_alerts->setVisible(!warnings.isEmpty());
|
|
|
|
this->ui->label_alerts->setText(warnings);
|
|
|
|
this->ui->label_alerts->setText(warnings);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void RPCConsole::updateWindowTitle()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
const ChainType chain = Params().GetChainType();
|
|
|
|
|
|
|
|
if (chain == ChainType::MAIN) return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const QString chainType = QString::fromStdString(Params().GetChainTypeString());
|
|
|
|
|
|
|
|
const QString title = tr("Node window - [%1]").arg(chainType);
|
|
|
|
|
|
|
|
this->setWindowTitle(title);
|
|
|
|
|
|
|
|
}
|