mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
Kryfi as default block explorer
This commit is contained in:
parent
1b6f648a0b
commit
50b78cee51
5 changed files with 15 additions and 7 deletions
|
@ -1110,8 +1110,11 @@ void MainWindow::suchDonate(const QString address) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onViewOnBlockExplorer(const QString &txid) {
|
void MainWindow::onViewOnBlockExplorer(const QString &txid) {
|
||||||
QString blockExplorerLink = Utils::blockExplorerLink(config()->get(Config::blockExplorer).toString(), m_ctx->networkType, txid);
|
QString blockExplorerLink = Utils::blockExplorerLink(txid);
|
||||||
Utils::externalLinkWarning(this, blockExplorerLink);
|
if(!blockExplorerLink.isEmpty())
|
||||||
|
Utils::externalLinkWarning(this, blockExplorerLink);
|
||||||
|
else
|
||||||
|
QMessageBox::warning(this, "Error", "Could not generate block explorer URL");
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onResendTransaction(const QString &txid) {
|
void MainWindow::onResendTransaction(const QString &txid) {
|
||||||
|
|
|
@ -146,7 +146,7 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>blockchair.com</string>
|
<string>kryfi.com</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
|
@ -28,7 +28,7 @@ static const QHash<Config::ConfigKey, ConfigDirective> configStrings = {
|
||||||
{Config::openVRSkin,{QS("openVRSkin"), "default"}},
|
{Config::openVRSkin,{QS("openVRSkin"), "default"}},
|
||||||
{Config::openVRStreamerMode,{QS("openVRStreamerMode"), false}},
|
{Config::openVRStreamerMode,{QS("openVRStreamerMode"), false}},
|
||||||
{Config::preferredFiatCurrency,{QS("preferredFiatCurrency"), "USD"}},
|
{Config::preferredFiatCurrency,{QS("preferredFiatCurrency"), "USD"}},
|
||||||
{Config::blockExplorer,{QS("blockExplorer"), "explore.wownero.com"}},
|
{Config::blockExplorer,{QS("blockExplorer"), "kryfi.com"}},
|
||||||
{Config::walletDirectory,{QS("walletDirectory"), ""}},
|
{Config::walletDirectory,{QS("walletDirectory"), ""}},
|
||||||
{Config::autoOpenWalletPath,{QS("autoOpenWalletPath"), ""}},
|
{Config::autoOpenWalletPath,{QS("autoOpenWalletPath"), ""}},
|
||||||
{Config::walletPath,{QS("walletPath"), ""}},
|
{Config::walletPath,{QS("walletPath"), ""}},
|
||||||
|
|
|
@ -238,8 +238,13 @@ QString Utils::copyFromClipboard() {
|
||||||
return clipboard->text();
|
return clipboard->text();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString Utils::blockExplorerLink(const QString &blockExplorer, NetworkType::Type nettype, const QString &txid) {
|
QString Utils::blockExplorerLink(const QString &txid) {
|
||||||
return QString("https://explore.wownero.com/tx/%1").arg(txid);
|
auto explorer = config()->get(Config::blockExplorer).toString();
|
||||||
|
if(explorer.startsWith("kryfi.com")) {
|
||||||
|
return QString("https://kryfi.com/explorer/wownero/tx/%1").arg(txid);
|
||||||
|
} else {
|
||||||
|
return QString("https://explore.wownero.com/tx/%1").arg(txid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QStandardItem *Utils::qStandardItem(const QString& text) {
|
QStandardItem *Utils::qStandardItem(const QString& text) {
|
||||||
|
|
|
@ -64,7 +64,7 @@ public:
|
||||||
static QStandardItem *qStandardItem(const QString &text, QFont &font);
|
static QStandardItem *qStandardItem(const QString &text, QFont &font);
|
||||||
static void copyToClipboard(const QString &string);
|
static void copyToClipboard(const QString &string);
|
||||||
static QString copyFromClipboard();
|
static QString copyFromClipboard();
|
||||||
static QString blockExplorerLink(const QString &blockExplorer, NetworkType::Type nettype, const QString &txid);
|
static QString blockExplorerLink(const QString &txid);
|
||||||
static QString getUnixAccountName();
|
static QString getUnixAccountName();
|
||||||
static QString xdgDesktopEntry();
|
static QString xdgDesktopEntry();
|
||||||
static bool xdgDesktopEntryWrite(const QString &path);
|
static bool xdgDesktopEntryWrite(const QString &path);
|
||||||
|
|
Loading…
Reference in a new issue