diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 147d953..c285882 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -37,9 +37,13 @@ MainWindow::MainWindow(QWidget *parent) : // Set up exit action QObject::connect(ui->actionExit, &QAction::triggered, this, &MainWindow::close); - // Set up donate action + // Set up feedback action QObject::connect(ui->actionDonate, &QAction::triggered, this, &MainWindow::donate); + QObject::connect(ui->actionDiscord, &QAction::triggered, this, &MainWindow::discord); + + QObject::connect(ui->actionWebsite, &QAction::triggered, this, &MainWindow::website); + // Set up check for updates action QObject::connect(ui->actionCheck_for_Updates, &QAction::triggered, [=] () { // Silent is false, so show notification even if no update was found @@ -600,6 +604,15 @@ void MainWindow::addressBook() { AddressBook::open(this); } +void MainWindow::discord() { + QString url = "https://myhush.org/discord/"; + QDesktopServices::openUrl(QUrl(url)); +} + +void MainWindow::website() { + QString url = "https://myhush.org"; + QDesktopServices::openUrl(QUrl(url)); +} void MainWindow::donate() { removeExtraAddresses(); diff --git a/src/mainwindow.h b/src/mainwindow.h index 692e746..157b821 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -110,6 +110,8 @@ private: void setMemoEnabled(int number, bool enabled); void donate(); + void website(); + void discord(); void addressBook(); void postToZBoard(); void importPrivKey(); diff --git a/src/mainwindow.ui b/src/mainwindow.ui index c230e89..3d04925 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -1290,6 +1290,8 @@ &Help + + @@ -1337,6 +1339,16 @@ &Send Duke Feedback + + + &Hush Discord + + + + + &Hush Website + + Check github.com for &updates