diff --git a/resources/desktop/com.github.rssguard.appdata.xml b/resources/desktop/com.github.rssguard.appdata.xml
index 7a9daa84f..b6ced2a1d 100644
--- a/resources/desktop/com.github.rssguard.appdata.xml
+++ b/resources/desktop/com.github.rssguard.appdata.xml
@@ -26,7 +26,7 @@
https://github.com/sponsors/martinrotter
-
+
none
diff --git a/src/librssguard/gui/settings/settingsnodejs.cpp b/src/librssguard/gui/settings/settingsnodejs.cpp
index 8bc50954c..484653e9f 100644
--- a/src/librssguard/gui/settings/settingsnodejs.cpp
+++ b/src/librssguard/gui/settings/settingsnodejs.cpp
@@ -6,6 +6,7 @@
#include "exceptions/applicationexception.h"
#include "miscellaneous/application.h"
#include "miscellaneous/nodejs.h"
+#include "network-web/webfactory.h"
#include
#include
@@ -18,7 +19,8 @@ SettingsNodejs::SettingsNodejs(Settings* settings, QWidget* parent) : SettingsPa
"scalable network applications.\n\n"
"%1 integrates Node.js to bring some modern features like Adblock.\n\n"
"Note that usually all required Node.js tools should be available via your \"PATH\" "
- "environment variable, so you do not have to specify full paths.").arg(APP_NAME),
+ "environment variable, so you do not have to specify full paths.\n\n"
+ "Also, relaunch \"Settings\" dialog after you install Node.js.").arg(APP_NAME),
false);
m_ui.m_helpPackages->setHelpText(tr("%1 automatically installs some Node.js packages so that you do not have to. %1 does not "
@@ -26,6 +28,11 @@ SettingsNodejs::SettingsNodejs(Settings* settings, QWidget* parent) : SettingsPa
"it uses subfolder placed in your \"user data\" folder.").arg(APP_NAME),
false);
+ connect(m_ui.m_btnDownloadNodejs, &QPushButton::clicked,
+ this, [this]() {
+ qApp->web()->openUrlInExternalBrowser(QSL("https://nodejs.org/en/download/"));
+ });
+
connect(m_ui.m_tbNodeExecutable->lineEdit(), &BaseLineEdit::textChanged,
this, &SettingsNodejs::testNodejs);
connect(m_ui.m_tbNpmExecutable->lineEdit(), &BaseLineEdit::textChanged,
diff --git a/src/librssguard/gui/settings/settingsnodejs.ui b/src/librssguard/gui/settings/settingsnodejs.ui
index 3522b627c..d2f8e25e8 100644
--- a/src/librssguard/gui/settings/settingsnodejs.ui
+++ b/src/librssguard/gui/settings/settingsnodejs.ui
@@ -17,7 +17,7 @@
-
- -
+
-
Node.js executable
@@ -27,7 +27,7 @@
- -
+
-
-
@@ -47,7 +47,7 @@
- -
+
-
NPM executable
@@ -57,7 +57,7 @@
- -
+
-
-
@@ -77,7 +77,7 @@
- -
+
-
Package folder
@@ -87,7 +87,7 @@
- -
+
-
-
@@ -107,9 +107,16 @@
- -
+
-
+ -
+
+
+ &Download Node.js
+
+
+