Explorer and other URLs

This commit is contained in:
fekt
2024-04-11 21:04:08 -04:00
parent a3ce9a3ae8
commit 5653a27292
3 changed files with 8 additions and 7 deletions

1
.gitignore vendored
View File

@@ -44,3 +44,4 @@ SilentDragonLite
.gdb_history
.*sw?
core
*.qm

View File

@@ -115,7 +115,7 @@ MainWindow::MainWindow(QWidget *parent) :
// File a bug
QObject::connect(ui->actionFile_a_bug, &QAction::triggered, [=]() {
QDesktopServices::openUrl(QUrl("https://hush.is/tg_support"));
QDesktopServices::openUrl(QUrl("https://dragonx.is/tg"));
});
// Set up check for updates action
@@ -768,7 +768,7 @@ void MainWindow::setupStatusBar() {
});
menu.addAction(tr("Copy block explorer link"), [=]() {
// auto explorer = Settings::getInstance()->getExplorer();
QGuiApplication::clipboard()->setText("https://explorer.hush.is/tx/" + txid);
QGuiApplication::clipboard()->setText("https://explorer.dragonx.is/tx/" + txid);
});
menu.addAction(tr("View tx on block explorer"), [=]() {
@@ -911,12 +911,12 @@ void MainWindow::addressBook() {
}
void MainWindow::telegram() {
QString url = "https://hush.is/telegram/";
QString url = "https://hush.is/tg/";
QDesktopServices::openUrl(QUrl(url));
}
void MainWindow::website() {
QString url = "https://hush.is";
QString url = "https://dragonx.is";
QDesktopServices::openUrl(QUrl(url));
}
@@ -1421,7 +1421,7 @@ void MainWindow::setupTransactionsTab() {
}
menu.addAction(tr("Copy block explorer link"), [=]() {
// auto explorer = Settings::getInstance()->getExplorer();
QGuiApplication::clipboard()->setText("https://explorer.hush.is/tx/" + txid);
QGuiApplication::clipboard()->setText("https://explorer.dragonx.is/tx/" + txid);
});
menu.addAction(tr("View on block explorer"), [=] () {

View File

@@ -342,12 +342,12 @@ QString Settings::getRandomServer() {
}
void Settings::openAddressInExplorer(QString address) {
QString url = "https://explorer.hush.is/address/" + address;
QString url = "https://explorer.dragonx.is/address/" + address;
QDesktopServices::openUrl(QUrl(url));
}
void Settings::openTxInExplorer(QString txid) {
QString url = "https://explorer.hush.is/tx/" + txid;
QString url = "https://explorer.dragonx.is/tx/" + txid;
QDesktopServices::openUrl(QUrl(url));
}