mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
add muchwow.lol explorer
This commit is contained in:
parent
ed9edb5ad6
commit
7cc5fd880e
3 changed files with 12 additions and 2 deletions
|
@ -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">
|
||||
|
|
|
@ -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"), ""}},
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue