add muchwow.lol explorer

This commit is contained in:
wowario 2023-01-17 19:59:39 +03:00
parent ed9edb5ad6
commit 7cc5fd880e
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111
3 changed files with 12 additions and 2 deletions

View file

@ -144,6 +144,11 @@
<string>explore.wownero.com</string>
</property>
</item>
<item>
<property name="text">
<string>muchwow.lol</string>
</property>
</item>
</widget>
</item>
<item row="4" column="0">

View file

@ -26,7 +26,7 @@ static const QHash<Config::ConfigKey, ConfigDirective> configStrings = {
{Config::openVRSkin,{QS("openVRSkin"), "default"}},
{Config::openVRStreamerMode,{QS("openVRStreamerMode"), false}},
{Config::preferredFiatCurrency,{QS("preferredFiatCurrency"), "USD"}},
{Config::blockExplorer,{QS("blockExplorer"), "explore.wownero.com"}},
{Config::blockExplorer,{QS("blockExplorer"), "muchwow.lol"}},
{Config::walletDirectory,{QS("walletDirectory"), ""}},
{Config::autoOpenWalletPath,{QS("autoOpenWalletPath"), ""}},
{Config::walletPath,{QS("walletPath"), ""}},

View file

@ -239,7 +239,12 @@ QString Utils::copyFromClipboard() {
}
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("muchwow.lol")) {
return QString("https://muchwow.lol/tx?id=%1").arg(txid);
} else {
return QString("https://explore.wownero.com/tx/%1").arg(txid);
}
}
QStandardItem *Utils::qStandardItem(const QString& text) {