]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
Menu: add documentation action, update report bug action
authortobtoht <thotbot@protonmail.com>
Thu, 21 Oct 2021 21:13:25 +0000 (23:13 +0200)
committertobtoht <thotbot@protonmail.com>
Thu, 21 Oct 2021 21:13:25 +0000 (23:13 +0200)
src/MainWindow.cpp
src/MainWindow.h
src/MainWindow.ui

index 14eab4576b3af330c633438a18c79015bd5923e0..bdbdbb2d076edda0cac7cec70937fc3ebf418181 100644 (file)
@@ -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",
-                             "<body>Please report any bugs as issues on our git repo:<br>\n"
-                             "<a href=\"https://git.featherwallet.org/feather/feather/issues\" style=\"color: #33A4DF\">https://git.featherwallet.org/feather/feather/issues</a><br/><br/>"
-                             "\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.</body>");
+    Utils::externalLinkWarning(this, "https://docs.featherwallet.org/guides/report-an-issue");
 }
 
 QString MainWindow::getPlatformTag() {
index 883329d04015a8f6c7c4823bdaa056e5e6ac15eb..a007aa47443ea47e3ac3c9acc9721c1310689fb2 100644 (file)
@@ -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
index 6b8868137d80510d0d7a428df285f152a9ce0092..a80c4604a05aa6f8bde77c7a9c15adfbc38824b1 100644 (file)
     <addaction name="actionOfficialWebsite"/>
     <addaction name="actionDonate_to_Feather"/>
     <addaction name="separator"/>
+    <addaction name="actionDocumentation"/>
     <addaction name="actionReport_bug"/>
     <addaction name="actionShow_debug_info"/>
    </widget>
     <string>Address checker</string>
    </property>
   </action>
+  <action name="actionDocumentation">
+   <property name="text">
+    <string>Documentation</string>
+   </property>
+  </action>
  </widget>
  <layoutdefault spacing="6" margin="11"/>
  <customwidgets>