Explorer and other URLs
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -44,3 +44,4 @@ SilentDragonLite
|
||||
.gdb_history
|
||||
.*sw?
|
||||
core
|
||||
*.qm
|
||||
|
||||
@@ -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"), [=] () {
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user