|
|
@ -424,14 +424,7 @@ void MainWindow::setupStatusBar() { |
|
|
|
QGuiApplication::clipboard()->setText(txid); |
|
|
|
}); |
|
|
|
menu.addAction("View tx on block explorer", [=]() { |
|
|
|
QString url; |
|
|
|
if (Settings::getInstance()->isTestnet()) { |
|
|
|
url = "https://explorer.testnet.z.cash/tx/" + txid; |
|
|
|
} |
|
|
|
else { |
|
|
|
url = "https://explorer.zcha.in/transactions/" + txid; |
|
|
|
} |
|
|
|
QDesktopServices::openUrl(QUrl(url)); |
|
|
|
Settings::openTxInExplorer(txid); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
@ -1109,13 +1102,7 @@ void MainWindow::setupBalancesTab() { |
|
|
|
} |
|
|
|
|
|
|
|
menu.addAction(tr("View on block explorer"), [=] () { |
|
|
|
QString url; |
|
|
|
if (Settings::getInstance()->isTestnet()) { |
|
|
|
url = "https://explorer.testnet.z.cash/address/" + addr; |
|
|
|
} else { |
|
|
|
url = "https://explorer.zcha.in/accounts/" + addr; |
|
|
|
} |
|
|
|
QDesktopServices::openUrl(QUrl(url)); |
|
|
|
Settings::openAddressInExplorer(addr); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
@ -1175,13 +1162,7 @@ void MainWindow::setupTransactionsTab() { |
|
|
|
} |
|
|
|
|
|
|
|
menu.addAction(tr("View on block explorer"), [=] () { |
|
|
|
QString url; |
|
|
|
if (Settings::getInstance()->isTestnet()) { |
|
|
|
url = "https://explorer.testnet.z.cash/tx/" + txid; |
|
|
|
} else { |
|
|
|
url = "https://explorer.zcha.in/transactions/" + txid; |
|
|
|
} |
|
|
|
QDesktopServices::openUrl(QUrl(url)); |
|
|
|
Settings::openTxInExplorer(txid); |
|
|
|
}); |
|
|
|
|
|
|
|
// Payment Request
|
|
|
|