Browse Source

Explorer and other URLs

dev
fekt 2 months ago
parent
commit
5653a27292
  1. 1
      .gitignore
  2. 10
      src/mainwindow.cpp
  3. 4
      src/settings.cpp

1
.gitignore

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

10
src/mainwindow.cpp

@ -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"), [=] () {

4
src/settings.cpp

@ -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));
}

Loading…
Cancel
Save