Settings: allow configuring block explorer urls

This commit is contained in:
tobtoht
2024-01-07 20:19:38 +01:00
parent a5ff6a3b67
commit cf0c3b8d82
15 changed files with 397 additions and 95 deletions
+8 -1
View File
@@ -181,7 +181,14 @@ void TxInfoDialog::createTxProof() {
}
void TxInfoDialog::viewOnBlockExplorer() {
Utils::externalLinkWarning(this, Utils::blockExplorerLink(conf()->get(Config::blockExplorer).toString(), constants::networkType, m_txid));
QString link = Utils::blockExplorerLink(m_txid);
if (link.isEmpty()) {
Utils::showError(this, "Unable to open block explorer", "No block explorer configured", {"Go to Settings -> Misc -> Block explorer"});
return;
}
Utils::externalLinkWarning(this, link);
}
TxInfoDialog::~TxInfoDialog() = default;