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
+5 -1
View File
@@ -1237,7 +1237,11 @@ void MainWindow::payToMany() {
}
void MainWindow::onViewOnBlockExplorer(const QString &txid) {
QString blockExplorerLink = Utils::blockExplorerLink(conf()->get(Config::blockExplorer).toString(), constants::networkType, txid);
QString blockExplorerLink = Utils::blockExplorerLink(txid);
if (blockExplorerLink.isEmpty()) {
Utils::showError(this, "Unable to open block explorer", "No block explorer configured", {"Go to Settings -> Misc -> Block explorer"});
return;
}
Utils::externalLinkWarning(this, blockExplorerLink);
}