mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-03 07:52:33 +02:00
Merge g758 via qt_nodewindow_chainname-22
This commit is contained in:
commit
b42b1dab09
@ -571,6 +571,8 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
|
||||
clear();
|
||||
|
||||
GUIUtil::handleCloseWindowShortcut(this);
|
||||
|
||||
updateWindowTitle();
|
||||
}
|
||||
|
||||
RPCConsole::~RPCConsole()
|
||||
@ -1378,3 +1380,13 @@ void RPCConsole::updateAlerts(const QString& warnings)
|
||||
this->ui->label_alerts->setVisible(!warnings.isEmpty());
|
||||
this->ui->label_alerts->setText(warnings);
|
||||
}
|
||||
|
||||
void RPCConsole::updateWindowTitle()
|
||||
{
|
||||
const std::string chain = Params().NetworkIDString();
|
||||
if (chain == CBaseChainParams::MAIN) return;
|
||||
|
||||
const QString chainType = QString::fromStdString(Params().NetworkIDString());
|
||||
const QString title = tr("Node window - [%1]").arg(chainType);
|
||||
this->setWindowTitle(title);
|
||||
}
|
||||
|
@ -191,6 +191,8 @@ private:
|
||||
return time_at_event.count() ? GUIUtil::formatDurationStr(time_now - time_at_event) : tr("Never");
|
||||
}
|
||||
|
||||
void updateWindowTitle();
|
||||
|
||||
private Q_SLOTS:
|
||||
void updateAlerts(const QString& warnings);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user