From a958a5492726a0d519f42fc75dac2171a9392874 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 21 Oct 2021 23:13:25 +0200 Subject: [PATCH] Menu: add documentation action, update report bug action --- src/MainWindow.cpp | 14 +++++++------- src/MainWindow.h | 1 + src/MainWindow.ui | 6 ++++++ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 14eab45..bdbdbb2 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -325,6 +325,7 @@ void MainWindow::initMenu() { connect(ui->actionAbout, &QAction::triggered, this, &MainWindow::menuAboutClicked); connect(ui->actionOfficialWebsite, &QAction::triggered, [this](){Utils::externalLinkWarning(this, "https://featherwallet.org");}); connect(ui->actionDonate_to_Feather, &QAction::triggered, this, &MainWindow::donateButtonClicked); + connect(ui->actionDocumentation, &QAction::triggered, this, &MainWindow::onShowDocumentaton); connect(ui->actionReport_bug, &QAction::triggered, this, &MainWindow::onReportBug); connect(ui->actionShow_debug_info, &QAction::triggered, this, &MainWindow::showDebugInfo); @@ -339,6 +340,7 @@ void MainWindow::initMenu() { ui->actionSettings->setShortcut(QKeySequence("Ctrl+Alt+S")); ui->actionUpdate_balance->setShortcut(QKeySequence("Ctrl+U")); ui->actionShow_Searchbar->setShortcut(QKeySequence("Ctrl+F")); + ui->actionDocumentation->setShortcut(QKeySequence("F1")); } void MainWindow::initHome() { @@ -1463,14 +1465,12 @@ void MainWindow::onCreateDesktopEntry(bool checked) { QMessageBox::information(this, "Desktop entry", msg); } +void MainWindow::onShowDocumentaton() { + Utils::externalLinkWarning(this, "https://docs.featherwallet.org"); +} + void MainWindow::onReportBug(bool checked) { - QMessageBox::information(this, "Reporting Bugs", - "Please report any bugs as issues on our git repo:
\n" - "https://git.featherwallet.org/feather/feather/issues

" - "\n" - "Before reporting a bug, upgrade to the most recent version of Feather " - "(latest release or git HEAD), and include the version number in your report. " - "Try to explain not only what the bug is, but how it occurs."); + Utils::externalLinkWarning(this, "https://docs.featherwallet.org/guides/report-an-issue"); } QString MainWindow::getPlatformTag() { diff --git a/src/MainWindow.h b/src/MainWindow.h index 883329d..a007aa4 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -117,6 +117,7 @@ private slots: void onExportHistoryCSV(bool checked); void onExportContactsCSV(bool checked); void onCreateDesktopEntry(bool checked); + void onShowDocumentaton(); void onReportBug(bool checked); // offline tx signing diff --git a/src/MainWindow.ui b/src/MainWindow.ui index 6b88681..a80c460 100644 --- a/src/MainWindow.ui +++ b/src/MainWindow.ui @@ -467,6 +467,7 @@ + @@ -803,6 +804,11 @@ Address checker + + + Documentation + +